File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,20 @@ jobs:
105
105
with :
106
106
name : docs ${{ github.run_number }}
107
107
path : ./docs/build
108
+ - name : Get current date
109
+ id : date
110
+ run : |
111
+ echo "::set-output name=year::$(date +'%Y')"
112
+ echo "::set-output name=week::$(date +'%U')"
108
113
- name : Cache links
109
114
uses : actions/cache@v1
110
115
with :
111
116
path : ./build/links
112
- key : ${{ runner.os }}-links
117
+ key : |
118
+ ${{ env.CACHE_EPOCH }}-${{ runner.os }}-links-${{ steps.date.outputs.year }}-${{ steps.date.outputs.week }}
119
+ restore-keys : |
120
+ ${{ env.CACHE_EPOCH }}-${{ runner.os }}-links-${{ steps.date.outputs.year }}-
121
+ ${{ env.CACHE_EPOCH }}-${{ runner.os }}-links-
113
122
- name : Check links
114
123
run : |
115
124
set -eux
You can’t perform that action at this time.
0 commit comments