Skip to content

Commit e6da5ba

Browse files
committed
I quit
1 parent 73bbc9e commit e6da5ba

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/python-prerelease.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,7 @@ jobs:
6868
fi
6969
7070
# Any line with `uv pip install --prerelease=allow` in the `.github/` folder must be updated with `--prerelease=allow` flag
71-
ls -R .github/workflows/
72-
files=$(grep -rl "uv pip install --prerelease=allow" .github/workflows/ || true)
73-
if [[ -n "$files" ]]; then
74-
echo "Updating the following files:"
75-
echo "$files"
76-
echo "$files" | xargs sed -i -E "s/uv pip install/uv pip install --prerelease=allow/"
77-
else
78-
echo "No matching files found, skipping update."
79-
fi
71+
find .github/workflows/ -type f -name '*.yml' -o -name '*.yaml' | xargs sed -i -E 's|(uv pip install(?!.*--prerelease=allow))|\1 --prerelease=allow|g'
8072
8173
# Commit and push changes
8274
git --no-pager diff --staged

0 commit comments

Comments
 (0)