push tag event to write semver tags isn't triggered because tags are pushed using GITHUB_TOKEN
#503
Replies: 1 comment
-
|
You can use the other types beyond Alternatively you could look at using a separate workflow trigger that might work, such as one that fires when a release has been published (which it sounds like your describing would trigger). I can't recall as I haven't looked up Github Actions docs in a while, so it might be prevented from triggering that, but I think some workflow triggers are compatible 🤔 Here's a fairly simple example workflow based on a release trigger, rather than a tag push event. That also includes a There's a similar You may want to be mindful of
https://github.com/docker/metadata-action/#typeraw That would work if you want to publish a tag manually. The other tag types provide conveniences:
For Additionally determining the So for you it's really about balancing convenience of what you can comfortably delegate to the action, but implicit processing if you're not careful may cause surprises that aren't as clear to troubleshoot vs when you manually manage your tagging convention explicitly. |
Beta Was this translation helpful? Give feedback.
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