@@ -35,12 +35,17 @@ jobs:
3535 with :
3636 version : " ${{ matrix.NXF_VER }}"
3737
38+ - name : Hash Github Workspace
39+ id : hash_workspace
40+ run : |
41+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
42+
3843 - name : Cache test data
3944 id : cache-testdata
4045 uses : actions/cache@v3
4146 with :
4247 path : test-datasets/
43- key : rnaseq3_10-test-data
48+ key : ${{ steps.hash_workspace.outputs.digest }}
4449
4550 - name : Check out test data
4651 if : steps.cache-testdata.outputs.cache-hit != 'true'
@@ -87,12 +92,17 @@ jobs:
8792 - name : Check out pipeline code
8893 uses : actions/checkout@v2
8994
95+ - name : Hash Github Workspace
96+ id : hash_workspace
97+ run : |
98+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
99+
90100 - name : Cache test data
91101 id : cache-testdata
92102 uses : actions/cache@v3
93103 with :
94104 path : test-datasets/
95- key : rnaseq3_10-test-data
105+ key : ${{ steps.hash_workspace.outputs.digest }}
96106
97107 - name : Check out test data
98108 if : steps.cache-testdata.outputs.cache-hit != 'true'
@@ -133,12 +143,17 @@ jobs:
133143 - name : Check out pipeline code
134144 uses : actions/checkout@v2
135145
146+ - name : Hash Github Workspace
147+ id : hash_workspace
148+ run : |
149+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
150+
136151 - name : Cache test data
137152 id : cache-testdata
138153 uses : actions/cache@v3
139154 with :
140155 path : test-datasets/
141- key : rnaseq3_10-test-data
156+ key : ${{ steps.hash_workspace.outputs.digest }}
142157
143158 - name : Check out test data
144159 if : steps.cache-testdata.outputs.cache-hit != 'true'
@@ -179,12 +194,17 @@ jobs:
179194 - name : Check out pipeline code
180195 uses : actions/checkout@v2
181196
197+ - name : Hash Github Workspace
198+ id : hash_workspace
199+ run : |
200+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
201+
182202 - name : Cache test data
183203 id : cache-testdata
184204 uses : actions/cache@v3
185205 with :
186206 path : test-datasets/
187- key : rnaseq3_10-test-data
207+ key : ${{ steps.hash_workspace.outputs.digest }}
188208
189209 - name : Check out test data
190210 if : steps.cache-testdata.outputs.cache-hit != 'true'
@@ -225,12 +245,17 @@ jobs:
225245 - name : Check out pipeline code
226246 uses : actions/checkout@v2
227247
248+ - name : Hash Github Workspace
249+ id : hash_workspace
250+ run : |
251+ echo "digest=$(echo RNA_3.10.1_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT
252+
228253 - name : Cache test data
229254 id : cache-testdata
230255 uses : actions/cache@v3
231256 with :
232257 path : test-datasets/
233- key : rnaseq3_10-test-data
258+ key : ${{ steps.hash_workspace.outputs.digest }}
234259
235260 - name : Check out test data
236261 if : steps.cache-testdata.outputs.cache-hit != 'true'
0 commit comments