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
-
I'm using a
GITHUB_TOKEN
to do my releases and tagging, but this prevents thepush tag
event from being triggered when the release workflow pushes the tags. Since thepush tag
event 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_PAT
across all repos.Desired workflow:
github-actions[bot]
usingGITHUB_TOKEN
docker/metadata-action
detects thepush tag
event and adds the semver tags to the metadata.Current workflow:
github-actions[bot]
usingGITHUB_TOKEN
push tag
event 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=raw
and parsing the tags from the repo and setting that to a variable, then passing that variable into theraw
tag, 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