-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,14 +44,17 @@ jobs: | |
# because it only handles artifacts uploaded in the same run, and we want to restore from the | ||
# previous successful run. | ||
- uses: actions/cache/[email protected] | ||
id: restore-cache | ||
if: github.event.inputs.repoCache != 'disabled' | ||
continue-on-error: true | ||
with: | ||
key: ${{ env.cache_key }} | ||
path: ${{ env.cache_dir }} | ||
|
||
- run: sudo chown -R runneradmin:root /tmp/renovate/ | ||
|
||
|
||
- run: ls $cache_dir | ||
|
||
- name: Generate a token | ||
id: generate_token | ||
uses: actions/create-github-app-token@a0de6af83968303c8c955486bf9739a57d23c7f1 # v1.10.0 | ||
|
@@ -71,16 +74,9 @@ jobs: | |
RENOVATE_AUTODISCOVER: true | ||
RENOVATE_AUTODISCOVER_FILTER: "${{ github.repository }}" | ||
|
||
# Compression helps performance in the upload step! | ||
- name: Compress renovate cache | ||
run: | | ||
ls $cache_dir | ||
# The -C is important -- otherwise we end up extracting the files with | ||
# their full path, ultimately leading to a nested directory situation. | ||
# To solve *that*, we'd have to extract to root (/), which isn't safe. | ||
tar -czvf $cache_archive -C $cache_dir . | ||
- run: ls $cache_dir | ||
- uses: actions/cache/[email protected] | ||
if: github.event.inputs.repoCache != 'disabled' | ||
with: | ||
key: ${{ env.cache_key }} | ||
key: ${{ steps.restore-cache.outputs.cache-primary-key }} | ||
path: ${{ env.cache_dir }} |