Somehow trigger tag creation event manually? #4462
Unanswered
jinnatar
asked this question in
Ask a Question
Replies: 1 comment
-
4 - I do this in general. Doesn't work with plugins. app_version=$(printf '%s' "$CI_COMMIT_SHA" | head -c 8)
if [ -n "${CI_MANUAL_TAG-}" ]; then
app_version="$CI_MANUAL_TAG"
elif [ -n "${CI_COMMIT_TAG-}" ]; then
app_version="$CI_COMMIT_TAG"
fi 1 - And this also works sometimes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes due to the position of the stars or whatever the webhook from the forge for tag creation just goes AWOL. I can't seem to find any graceful way to recover from this unless the forge has recorded the webhook failure and allows a replay of it. Sometimes that's an option, but this time today it's not.
Sample config:
Ideas considered and tried:
manual
. Setting branch to the tag value doesn't work, it tries to be too clever and expects the value to actually be a branch, not an arbitrary ref.Is there some simple option I'm not seeing? It just feels wrong that a single errant webhook call going missing completely makes it impossible to recover cleanly because there are no options to synthesize any event other than
manual
. That's likely a security consideration, but as said I could just go push an arbitrary webhook via curl given enough effort, so seems like there is perhaps less security value than seems at first.Edit:
auto_tag
. 🤷♀️Beta Was this translation helpful? Give feedback.
All reactions