Skip to content

Commit a437b6d

Browse files
committed
Skip CD release workflow for bot commits
The bot commit triggers a new CD run, and invoke setver finds another version bump each time, creating an infinite loop. Guard against this by skipping the job when the triggering commit message starts with '[bot]'.
1 parent 68904ae commit a437b6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/cd_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
jobs:
1515
update_version:
1616
name: Update the version
17-
if: github.repository_owner == 'EMMC-ASBL'
17+
if: github.repository_owner == 'EMMC-ASBL' && !startsWith(github.event.head_commit.message, '[bot]')
1818
runs-on: ubuntu-latest
1919
outputs:
2020
continue_workflow: ${{ steps.update_version_step.outputs.continue_workflow }}

0 commit comments

Comments
 (0)