We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57c1947 commit 529f551Copy full SHA for 529f551
.github/workflows/update_version.yml
@@ -20,8 +20,12 @@ jobs:
20
21
- name: Commit and push version file
22
run: |
23
- git config user.name "github-actions"
24
- git config user.email "[email protected]"
25
- git add VERSION.txt
26
- git commit -m "Update VERSION.txt" || echo "No changes to commit"
27
- git push
+ if [[ "${{ github.event.head_commit.message }}" == *"Update VERSION.txt"* ]]; then
+ echo "VERSION.txt already updated — skipping push to avoid loop."
+ else
+ git config user.name "github-actions"
+ git config user.email "[email protected]"
28
+ git add VERSION.txt
29
+ git commit -m "Update VERSION.txt" || echo "No changes to commit"
30
+ git push
31
+ fi
0 commit comments