File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 68
68
fi
69
69
70
70
# 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'
80
72
81
73
# Commit and push changes
82
74
git --no-pager diff --staged
You can’t perform that action at this time.
0 commit comments