-
When a particular user commits, I want to automatically tag the commit, build and upload it to the release. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
You can use Example workflow here: https://github.com/OWASP/wstg/blob/64631f974d5a4d32731bcd81bb7a6ccf576ce806/.github/workflows/build-pdf.yml#L15 Obviously your steps will be different but it should give you something to model with. |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
It was not working for me. |
Beta Was this translation helpful? Give feedback.
-
The There is an action available called
|
Beta Was this translation helpful? Give feedback.
The
github.actor
variable refers to the GitHub user but in your case weblate is not a GitHub user. You can find the specifics of the supported variables here: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-contextThere is an action available called
rlespinasse/git-commit-data-action
which can extract the data you’re interested in and you can then use that to compare against. I’ve attached an example workflow below that will only release when the commit comes fromweblate
:slight_smile: