Skip to content

Commit 39b9b09

Browse files
committed
update workflow
1 parent 1ee4e46 commit 39b9b09

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/update-library-refs.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff 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
@@ -60,11 +54,9 @@ jobs:
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

0 commit comments

Comments
 (0)