-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Split cache step into two, always save cache, fix hash files #422
Changes from 25 commits
b1e5358
b2f032e
2b6fa8a
f3d26d2
39cb97a
b1ffd81
8c1adbf
2f75a52
a5f203a
9fd2ff6
25e55d2
31cd456
414424f
0945f03
8ca89f3
dea52ad
c716610
7dd29b2
9f16304
5caa817
f5f5603
1781604
b33cf99
5051b23
7b55088
3b245f4
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 |
---|---|---|
|
@@ -175,12 +175,13 @@ runs: | |
esac | ||
shell: bash | ||
|
||
- name: Cache PIP Packages | ||
uses: actions/cache@v3 | ||
- name: Restore PIP packages cache | ||
uses: actions/cache/restore@v3 | ||
id: cache | ||
continue-on-error: true | ||
with: | ||
path: ${{ steps.os.outputs.pip-cache }} | ||
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-${{ hashFiles('**/requirements.txt', 'composite/action.yml') }} | ||
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-f3f2c295046c91ed612b4efb6c9fb352 | ||
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. I saw you were fighting with this, in the end you'll update it manually for each release? 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. Could you pull in https://github.com/actions/github-script and call 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. 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.
yes, but only if 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.
maybe, but I'd prefer not to add more complexity |
||
|
||
- name: Install Python dependencies | ||
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. Can this affect 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. Don't get it. With |
||
run: | | ||
|
@@ -238,6 +239,14 @@ runs: | |
LOG_LEVEL: ${{ inputs.log_level }} | ||
shell: bash | ||
|
||
- name: Save PIP packages cache | ||
uses: actions/cache/save@v3 | ||
if: ( success() || failure() ) && ! steps.cache.outputs.cache-hit | ||
continue-on-error: true | ||
with: | ||
path: ${{ steps.os.outputs.pip-cache }} | ||
key: ${{ steps.cache.outputs.cache-primary-key }} | ||
|
||
branding: | ||
icon: 'check-circle' | ||
color: 'green' |
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.
can I use this branch directly?
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.
Let's see TWiStErRob/net.twisterrob.libraries@b66a8c6
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.
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 went for the direct hash, so it's clear which commit was used, but now I realize that "Set up job" lists them.