Use month in the cache key.
This commit is contained in:
parent
27ca8cb8a7
commit
1f2c40fa44
1 changed files with 5 additions and 6 deletions
11
.github/workflows/docs.yml
vendored
11
.github/workflows/docs.yml
vendored
|
@ -27,11 +27,10 @@ jobs:
|
||||||
sudo chown "${USER}" /usr/local/etc/roswell
|
sudo chown "${USER}" /usr/local/etc/roswell
|
||||||
# Here the ros binary will be restored:
|
# Here the ros binary will be restored:
|
||||||
sudo chown "${USER}" /usr/local/bin
|
sudo chown "${USER}" /usr/local/bin
|
||||||
# - name: Get Current Month
|
- name: Get Current Month
|
||||||
# id: current-month
|
id: current-month
|
||||||
# run: |
|
run: |
|
||||||
# echo "::set-output name=value::$(date -u "+%Y-%m")"
|
echo "::set-output name=value::$(date -u "+%Y-%m")"
|
||||||
# # use it as ${{ steps.current-month.outputs.value }}
|
|
||||||
- name: Cache Roswell Setup
|
- name: Cache Roswell Setup
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
@ -44,7 +43,7 @@ jobs:
|
||||||
~/.roswell
|
~/.roswell
|
||||||
/usr/local/etc/roswell
|
/usr/local/etc/roswell
|
||||||
.qlot
|
.qlot
|
||||||
key: "${{ runner.os }}-build2-${{ env.cache-name }}-${{ hashFiles('qlfile.lock') }}"
|
key: "${{ steps.current-month.outputs.value }}-${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles('qlfile.lock') }}"
|
||||||
- name: Restore Path To Cached Files
|
- name: Restore Path To Cached Files
|
||||||
run: |
|
run: |
|
||||||
echo $HOME/.roswell/bin >> $GITHUB_PATH
|
echo $HOME/.roswell/bin >> $GITHUB_PATH
|
||||||
|
|
Loading…
Reference in a new issue