-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Allow to skip the save post-step #489
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
afba7e9
0dad637
f4a5fe8
6ceddd5
710ccd0
c1aacbd
91185bb
64daede
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ runs: | |
| using: 'node12' | ||
| main: 'dist/restore/index.js' | ||
| post: 'dist/save/index.js' | ||
| post-if: 'success()' | ||
| post-if: success() && env.CACHE_SKIP_SAVE != 'true' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My only suggestion would be to have a more specific environment variable here. Something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @roni-frantchi, would you be able to pick this up? Would be great to get this merged! |
||
| branding: | ||
| icon: 'archive' | ||
| color: 'gray-dark' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that this is the default example and skipping cache save is a special case, I wouldn't include this here. Perhaps move this into the Examples.md file and we can add some specific examples of where this is useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something we can also highlight in the example is how users can either set this on the cache step as shown here or using
echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the changes you've suggested on the readme file capture it well enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roni-frantchi & @dhadka, would be great if this PR could be merged to reduce the workflow runtime when a cache-update isn't required. Seems like only a small adjustment would be needed?
Not sure if this issue could be addressed in this PR too: skipping the post-step altogether when there was a cache-hit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that it can either...
Seeing so many are expecting it, maybe we should explore doing it on another PR?..
Sorry @rene-leanix it's been a while - what adjustment would that be?..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roni-frantchi, I was just referring to @dhadka's comments above in this thread: here and here.