Action does not run on master with tags-ignore v* #26072
-
I have a workflow that does not run on master after adding I want to ignore tags so it does not run when I create a release tag. Any idea why this is happening?
here is the workflow file: openapi-processor/openapi-processor-core/blob/630ee1d91440047acc6be5e3db7eab9ec6d285c6/.github/workflows/build.yaml
This file has been truncated. show original |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
The asterisk is a special character in YAML. It is used in conjunction with
|
Beta Was this translation helpful? Give feedback.
-
Thanks, tried it, but unfortunately it does not help. Looking at the docs, the tags are written without the quotes: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags So that doesn’t seem to be the problem. Strange. |
Beta Was this translation helpful? Give feedback.
-
Weird. It should run whenever you push a commit to any branch, with at least one file not matching What if you remove
|
Beta Was this translation helpful? Give feedback.
-
The documentation says:
Your workflow has an explicit rule for tags, but not for branches, so I assume that’s the reason. Try adding
to the |
Beta Was this translation helpful? Give feedback.
-
Tried it, it does not help. After removing the tags stuff it runs again. The repo is not forked, but I moved it to an organization a while ago. |
Beta Was this translation helpful? Give feedback.
-
Looks like that was the trick, now it runs! Thanks. |
Beta Was this translation helpful? Give feedback.
The documentation says:
Your workflow has an explicit rule for tags, but not for branches, so I assume that’s the reason. Try adding
to the
push
event to build on all branch pushes.