From d9e9b3aefe96a9e550da27f616040502bafa68ef Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Fri, 31 May 2024 07:40:47 +0000 Subject: [PATCH] Always save the cache after packaging --- package/action.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/package/action.yml b/package/action.yml index 2430b83..5cb2a9e 100644 --- a/package/action.yml +++ b/package/action.yml @@ -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 @@ -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 }}