Skip to content

Commit

Permalink
ci: prevent automatic creation of a new release in some cases
Browse files Browse the repository at this point in the history
If new commits are only `ci:` `doc:` or `gh-actions` (updates), do not trigger a new release
  • Loading branch information
libvoid committed Oct 9, 2023
1 parent 90ce0f8 commit b4d9ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/auto_release_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
id: release
run: |
echo "RELEASE=false" >> $GITHUB_OUTPUT
git diff $(git describe --tags --abbrev=0) HEAD --stat | grep -q "changed" || exit 0
git log $(git describe --tags --abbrev=0)..HEAD --oneline | grep -Evq "(ci:|doc:|gh-actions)" || exit 0
new_tag=$(git describe --tags --abbrev=0 | awk -F. '{OFS="."; $NF+=1; print $0}')
git tag "$new_tag" -f
git push -f origin tag "$new_tag"
Expand Down

0 comments on commit b4d9ef3

Please sign in to comment.