Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.3k
Use run-name and evaluate workflow variables#34301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
TheFox0x7 commentedApr 28, 2025
Shouldn't this go tojobparser? |
badhezi commentedApr 29, 2025
@TheFox0x7 |
cca335d to9408c76Comparebadhezi commentedMay 12, 2025
Hey@lunny you think I can get someone to reviewhttps://gitea.com/gitea/act/pulls/137 so we can push this forward? |
lunny commentedMay 12, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
That PR merged. |
badhezi commentedMay 12, 2025
Thanks@lunny |
lunny commentedMay 12, 2025
|
badhezi commentedMay 13, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Can this PR please be reviewed? |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
0534edd intogo-gitea:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
* giteaofficial/main: [skip ci] Updated translations via Crowdin Fix ephemeral runner deletion (go-gitea#34447) ui: add a default tab on repo header when migrating (go-gitea#34503) Use run-name and evaluate workflow variables (go-gitea#34301) feat(api): add date range filtering to commit retrieval endpoints (go-gitea#34497) Export repo's manual merge settings (go-gitea#34502)
Uh oh!
There was an error while loading.Please reload this page.
This addresses#34247
depends onhttps://gitea.com/gitea/act/pulls/137
I couldn't find any previous implementation for
run-namesupport on workflows so I created one.Key points:
All dispatched workflows, scheduled workflows and detected workflows (from different hooks) will use and evaluate
run-nameif exists, with the corresponding gitea context and variables. This will be used as the Action run title and replace the default commit message being used today.Had to change act package jobparser (see link above)
and create two helpers
gitea/models/actions/utils.go
Line 86 in3a1320c
and
gitea/services/actions/context.go
Line 169 in3a1320c
to pass the correct types toGenerateGiteaContext andWithGitContext respectively.