mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 10:45:29 +00:00
Add versioning.
This commit is contained in:
parent
d88f9cf209
commit
7dfe2c32f2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue