mirror of
https://github.com/gradle/actions.git
synced 2025-10-17 06:58:36 +08:00
Do not run setup-gradle post action if workflow is cancelled (#716)
### Issue Fixes https://github.com/gradle/actions/issues/72 ### Fix Do not run post-action if the job is cancelled ### Implementation decisions - Completely skipping the post-actions can somehow be impacting (dependency graph and deprecations being emitted there) but that seems ok if a job is cancelled - Post-actions could be run only upon success only of the job, but a failed build would still benefit from dependency graph , deprecations and stated to be saved)
This commit is contained in:
commit
b93f758685
@ -242,6 +242,7 @@ runs:
|
|||||||
using: 'node20'
|
using: 'node20'
|
||||||
main: '../dist/setup-gradle/main/index.js'
|
main: '../dist/setup-gradle/main/index.js'
|
||||||
post: '../dist/setup-gradle/post/index.js'
|
post: '../dist/setup-gradle/post/index.js'
|
||||||
|
post-if: '!cancelled()'
|
||||||
|
|
||||||
branding:
|
branding:
|
||||||
icon: 'box'
|
icon: 'box'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user