push tag event to write semver tags isn't triggered because tags are pushed using GITHUB_TOKEN
#503
Unanswered
syaghoubi00
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using a
GITHUB_TOKENto do my releases and tagging, but this prevents thepush tagevent from being triggered when the release workflow pushes the tags. Since thepush tagevent isn't triggered, I am unable to create the proper metadata semver tags, even though the tags exist in the repo.I'd appreciate any ideas on how to work around this. I did try using a PAT which does trigger workflows - however this came with some undesirable effects, such as, all release/tagging 'bot' activities would be authored by me (via the PAT), be unverified, and key management becomes painful when having to roll a
RELEASE_PATacross all repos.Desired workflow:
github-actions[bot]usingGITHUB_TOKENdocker/metadata-actiondetects thepush tagevent and adds the semver tags to the metadata.Current workflow:
github-actions[bot]usingGITHUB_TOKENpush tagevent isn't triggered, so no metadata creation etc.I know this is kind of a limitation with GH itself, with bots being unable to trigger other workflows, but I'd appreciate any ideas.
I was thinking about using a
type=rawand parsing the tags from the repo and setting that to a variable, then passing that variable into therawtag, liketype=raw,${{ env.MAJOR_VER }}, but this seemed very hacky, and I'm not sure if it would even work.Beta Was this translation helpful? Give feedback.
All reactions