File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -339,16 +339,21 @@ runs:
339
339
echo "release=${DISTRIB_RELEASE}" >> $GITHUB_OUTPUT
340
340
echo "codename=${DISTRIB_CODENAME}" >> $GITHUB_OUTPUT
341
341
echo "description=${DISTRIB_DESCRIPTION}" >> $GITHUB_OUTPUT
342
- echo "id-release=${DISTRIB_ID}-${DISTRIB_DESCRIPTION }" >> $GITHUB_OUTPUT
342
+ echo "id-release=${DISTRIB_ID}-${DISTRIB_RELEASE }" >> $GITHUB_OUTPUT
343
343
echo "arch=$(uname -m)" >> $GITHUB_OUTPUT
344
344
elif [ "$RUNNER_OS" == "macOS" ]; then
345
345
echo "id-release=macOS-$(sw_vers -productVersion)" >> $GITHUB_OUTPUT
346
346
echo "arch=$(uname -m)" >> $GITHUB_OUTPUT
347
347
fi
348
+ # Create an envvar that stores information about the action version used
349
+ ACTION_VERSION=$(basename "$GITHUB_ACTION_PATH")
350
+ ACTION_NAME=$(basename $(dirname "$GITHUB_ACTION_PATH"))
351
+ ACTION_OWNER=$(basename $(dirname $(dirname "$GITHUB_ACTION_PATH")))
352
+ echo "cvmfs_action_version=${ACTION_OWNER}_${ACTION_NAME}_${ACTION_VERSION}" >> $GITHUB_OUTPUT
348
353
shell : bash
349
354
- uses : actions/cache@v4
350
355
with :
351
- key : cvmfs-apt-cache-${{ steps.lsb-release.outputs.id-release }}-${{ steps.lsb-release.outputs.arch }}-${{ hashFiles('action.yml') }}
356
+ key : cvmfs-apt-cache-${{ steps.lsb-release.outputs.id-release }}-${{ steps.lsb-release.outputs.arch }}-${{ steps.lsb-release.outputs.cvmfs_action_version }}
352
357
path : |
353
358
${{ inputs.apt_cache }}
354
359
- run : |
You can’t perform that action at this time.
0 commit comments