Use month in the cache key.

This commit is contained in:
Alexander Artemenko 2021-02-25 00:39:52 +03:00
parent 27ca8cb8a7
commit 1f2c40fa44

View file

@ -27,11 +27,10 @@ jobs:
sudo chown "${USER}" /usr/local/etc/roswell
# Here the ros binary will be restored:
sudo chown "${USER}" /usr/local/bin
# - name: Get Current Month
# id: current-month
# run: |
# echo "::set-output name=value::$(date -u "+%Y-%m")"
# # use it as ${{ steps.current-month.outputs.value }}
- name: Get Current Month
id: current-month
run: |
echo "::set-output name=value::$(date -u "+%Y-%m")"
- name: Cache Roswell Setup
id: cache
uses: actions/cache@v2
@ -44,7 +43,7 @@ jobs:
~/.roswell
/usr/local/etc/roswell
.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
run: |
echo $HOME/.roswell/bin >> $GITHUB_PATH