File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -33,22 +33,16 @@ jobs:
3333 echo "Files to patch SHA:"
3434 find ./f95 ./lc -type f
3535 find ./f95 ./lc -type f -exec sed -i -E "s/[a-f0-9]{40}/$COMMIT_HASH/g" {} +
36-
37- - name : Bump @version patch
38- run : |
39- set -e
36+
4037 TARGET_DIRS=(./f95 ./lc)
41-
42- cd "${GITHUB_WORKSPACE}"
43- ls -la $TARGET_DIRS
4438
4539 for DIR in "${TARGET_DIRS[@]}"; do
4640 find "$DIR" -type f -name "*.user.js" | while read -r FILE; do
4741 echo "Processing: $FILE"
4842
4943 VERSION_LINE=$(grep -E "//\s*@version\s+[0-9]+\.[0-9]+(\.[0-9]+)?" "$FILE")
5044 CURRENT_VERSION=$(echo "$VERSION_LINE" | grep -oE "[0-9]+\.[0-9]+(\.[0-9]+)?")
51-
45+
5246 if [[ "$CURRENT_VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then
5347 CURRENT_VERSION="${CURRENT_VERSION}.0"
5448 fi
6054 echo "Updated $FILE to version $NEW_VERSION"
6155 done
6256 done
63-
64- - name : Commit bumped versions
65- run : |
57+
6658 git config --global user.name ${{ secrets.USER_NAME }}
6759 git config --global user.email ${{ secrets.EMAIL }}
6860 git add -A
6961 git commit -m "Fix library references"
70- git push --force origin HEAD:main
62+ git push --force origin HEAD:main
You can’t perform that action at this time.
0 commit comments