Skip to content

Commit b89ec1d

Browse files
committed
use date to keep caches up to date
1 parent 308bec8 commit b89ec1d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/r-ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,17 @@ jobs:
3535
- name: Install linux dependencies
3636
run: |
3737
sudo apt-get install libcurl4-openssl-dev
38+
- name: Get month
39+
id: get-month
40+
run: |
41+
echo "::set-output name=month::$(/bin/date -u "+%Y%m")"
3842
- name: Cache R packages
3943
uses: actions/cache@v2
4044
with:
4145
path: ${{ env.R_LIBS_USER }}
42-
key: ${{ runner.os }}-r-facebook-survey-
46+
key: ${{ runner.os }}-r-facebook-survey-${{ steps.get-month.outputs.month }}
47+
restore-keys: |
48+
${{ runner.os }}-r-facebook-survey-
4349
- name: Install R dependencies
4450
run: |
4551
install.packages("remotes")

0 commit comments

Comments
 (0)