From 1f2c40fa44267a862313eddc5050f03705c82987 Mon Sep 17 00:00:00 2001 From: Alexander Artemenko Date: Thu, 25 Feb 2021 00:39:52 +0300 Subject: [PATCH] Use month in the cache key. --- .github/workflows/docs.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 08ee3f6..191c8a5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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