Commit 787e036 1 parent 4aafb40 commit 787e036 Copy full SHA for 787e036
File tree 1 file changed +16
-7
lines changed
1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,21 @@ name: test cache
2
2
3
3
on :
4
4
workflow_call :
5
+ inputs :
6
+ path :
7
+ description : path to download files to and cache
8
+ type : string
9
+ required : false
10
+ default : ' '
5
11
outputs :
12
+ cache_path :
13
+ value : ${{ jobs.cache.outputs.cache_path }}
14
+ key :
15
+ value : ${{ jobs.cache.outputs.cache_key }}
6
16
path :
7
- value : ${{ jobs.cache.outputs.path }}
17
+ value : ${{ jobs.cache.outputs.crds_path }}
8
18
testing_cache :
9
19
value : ${{ jobs.cache.outputs.testing_cache }}
10
- key :
11
- value : ${{ jobs.cache.outputs.key }}
12
20
workflow_dispatch :
13
21
schedule :
14
22
# Weekly Monday midnight
31
39
name : download and cache CRDS test files
32
40
runs-on : ubuntu-latest
33
41
steps :
34
- - run : echo CRDS_TEST_ROOT=${{ runner.temp }}/crds >> $GITHUB_ENV
42
+ - run : echo CRDS_TEST_ROOT=${{ inputs.path != '' && inputs.path || runner.temp }} >> $GITHUB_ENV
35
43
- run : |
36
44
echo CRDS_PATH=${{ env.CRDS_TEST_ROOT }}/crds-cache-default-test >> $GITHUB_ENV
37
45
echo CRDS_TESTING_CACHE=${{ env.CRDS_TEST_ROOT }}/crds-cache-test >> $GITHUB_ENV
89
97
- if : steps.cache.outputs.cache-hit != 'true'
90
98
run : ./setup_test_cache ${{ env.CRDS_TEST_ROOT }} ${{ (steps.cache_hst.outputs.cache-hit == 'true' || steps.cache_jwst.outputs.cache-hit == 'true') && 'u' || 'c' }}
91
99
outputs :
92
- path : ${{ env.CRDS_PATH }}
93
- testing_cache : ${{ env.CRDS_TESTING_CACHE }}
94
- key : ${{ steps.key.outputs.key }}
100
+ cache_path : ${{ env.CRDS_TEST_ROOT }}
101
+ cache_key : ${{ steps.key.outputs.key }}
102
+ crds_path : ${{ env.CRDS_PATH }}
103
+ crds_testing_cache : ${{ env.CRDS_TESTING_CACHE }}
You can’t perform that action at this time.
0 commit comments