From 7dfe2c32f2db53e259b3fd13d058b1f4f5b93e7c Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sat, 16 Oct 2021 11:34:03 -0700 Subject: [PATCH] Add versioning. --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c9ce7f2..7acc611 100644 --- a/action.yml +++ b/action.yml @@ -10,6 +10,10 @@ inputs: description: 'Space delimited list of packages to install.' required: true default: '' + version: + description: 'Version will create a new cache and install packages.' + required: false + default: '' outputs: cache-hit: @@ -24,7 +28,7 @@ runs: shell: bash - name: Create Cache Key - run: echo ${{ inputs.packages }} | sed 's/[\s,]+/\n/g' | sort > /tmp/package_list.txt + run: echo ${{ inputs.packages }} "cache-apt-pkgs-version:${{ inputs.version }}" | sed 's/[\s,]+/\n/g' | sort > /tmp/package_list.txt shell: bash - name: Load Package Cache