Add tagging only on a specific branch #208
-
|
I would like to skip tagging for a specific branch, I don't know If there is an existing implementation for that. At the moment I have: I would want something like: |
Beta Was this translation helpful? Give feedback.
Answered by
stefanzweifel
Mar 30, 2022
Replies: 1 comment
-
|
This can be achieved in a couple of ways:
In your example, it would look like this: - uses: stefanzweifel/git-auto-commit-action@v4
if: contains(github.ref, "master")
with:
commit_message: commit message
tagging_message: module version
commit_user_name: Developer
commit_user_email: [email protected] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stefanzweifel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be achieved in a couple of ways:
on.pull_request.branchestrigger: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpull_requestpull_request_targetbranchesbranches-ignoreif-conditions on the step block level. https://github.community/t/run-step-on-if-branch-tag-is/16965In your example, it would look like this: