mirror of
https://github.com/actions/setup-python.git
synced 2025-06-08 14:37:00 +09:00
Skip the post run step entirely if the cache is disabled
Previously if the `cache: false` (the default for this Action), the Action's "post run" step would still be executed. Whilst this step was fast (since it returned early if the cache was disabled), it still causes unnecessary noise in the job's steps list. For example as seen in:2379896068
Now, the post run step is skipped if the cache is disabled, thanks to the `post-if` syntax supporting the `github.events.inputs.*` context. See: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runspost-if0c45773b62/action.yml (L40)
This commit is contained in:
parent
d0b4fc497a
commit
d653820ff6
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ runs:
|
||||||
using: 'node20'
|
using: 'node20'
|
||||||
main: 'dist/setup/index.js'
|
main: 'dist/setup/index.js'
|
||||||
post: 'dist/cache-save/index.js'
|
post: 'dist/cache-save/index.js'
|
||||||
post-if: success()
|
post-if: 'success() && github.event.inputs.cache'
|
||||||
branding:
|
branding:
|
||||||
icon: 'code'
|
icon: 'code'
|
||||||
color: 'yellow'
|
color: 'yellow'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue