You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, great action here. I cannot figure out, how to get the result of the check. I want to run a step, only, if the commit message check fails.
Something like this:
jobs:
check-commit-message:
name: Commit Validationruns-on: ubuntu-lateststeps:
- name: Check commit messageuses: gsactions/commit-message-checker@v2id: check-commit-messagecontinue-on-error: truewith:
pattern: '(KP|IT|FO|FM)-\d+[^\S\r\n]'flags: 'gm'error: 'Die Commit-Message entspricht nicht den eTASK-Regeln. Bitte korrigiere sie.'excludeDescription: 'false'# optional: this does not exclude the description body of a pull requestexcludeTitle: 'false '# optional: this does not exclude the title of a pull requestcheckAllCommitMessages: 'true'# optional: this checks all commits associated with a pull requestaccessToken: ${{ secrets.GH_TOKEN }} # github access token is only required if checkAllCommitMessages is true
- name: Set branch protection ruleif: steps.check-commit-message.conclusion == 'failure'run: "echo 'Set branch protection rule'"
- name: Finalizeif: steps.check-commit-message.conclusion == 'success'run: "echo 'Die Commit Message ist ok! Danke.'"
But it seems, that the value of steps.check-commit-message.conclusion has always the value success.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, great action here. I cannot figure out, how to get the result of the check. I want to run a step, only, if the commit message check fails.
Something like this:
But it seems, that the value of
steps.check-commit-message.conclusion
has always the valuesuccess
.Beta Was this translation helpful? Give feedback.
All reactions