From b4d9ef3372e7ea8239c6737c9eb56677dddf43fe Mon Sep 17 00:00:00 2001 From: libvoid <135131094+libvoid@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:05:55 +0200 Subject: [PATCH] ci: prevent automatic creation of a new release in some cases If new commits are only `ci:` `doc:` or `gh-actions` (updates), do not trigger a new release --- .github/workflows/auto_release_trigger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto_release_trigger.yml b/.github/workflows/auto_release_trigger.yml index c09a4b90..118854ea 100644 --- a/.github/workflows/auto_release_trigger.yml +++ b/.github/workflows/auto_release_trigger.yml @@ -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"