Skip to content

Commit

Permalink
Always save the cache after packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
crohr committed May 31, 2024
1 parent 521a2ca commit d9e9b3a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ runs:
fi
iteration="$iteration.$codename"
echo "iteration=$iteration" >> $GITHUB_OUTPUT
- name: Cache
uses: actions/cache@v4
- name: Restore cache
uses: actions/cache/restore@v4
with:
path: ${{ steps.setup.outputs.workspace }}/cache
key: pkgr-${{ inputs.cache_prefix }}-${{ inputs.target }}-${{ inputs.pkgr_version }}
save-always: true

- name: Package
shell: bash
Expand All @@ -103,3 +103,8 @@ runs:
echo "package_type=${package_path##*.}" >> $GITHUB_OUTPUT
echo "package_name=${package_path##*/}" >> $GITHUB_OUTPUT
- name: Save cache
uses: actions/cache/save@v4
with:
path: ${{ steps.setup.outputs.workspace }}/cache
key: pkgr-${{ inputs.cache_prefix }}-${{ inputs.target }}-${{ inputs.pkgr_version }}

0 comments on commit d9e9b3a

Please sign in to comment.