File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929# Determine if cache needs to be re-generated
3030if [ " $cache_modified_post " -gt " $cache_modified_pre " ]; then
31- echo " update-cache =true" >> $GITHUB_ENV
31+ echo " cacheChanged =true" >> $GITHUB_ENV
3232else
33- echo " update-cache =false" >> $GITHUB_ENV
33+ echo " cacheChanged =false" >> $GITHUB_ENV
3434fi
3535
3636# NB: This script exits 0, but saves the exit code for a later build step.
Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ jobs:
4646 SIGNING_ASC : ${{ secrets.SIGNING_ASC }}
4747
4848 - name : Delete the melting-pot cache
49- if : env.update-cache == 'true'
49+ if : env.cacheChanged == 'true'
5050 id : delete-cache
5151 run : |
5252 gh api --method DELETE -H "Accept: application/vnd.github+json" /repos/scijava/pom-scijava/actions/caches?key=${{ runner.os }}-cache
5353 env :
5454 GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
5555
5656 - name : Save the melting-pot cache
57- if : env.update-cache == 'true'
57+ if : env.cacheChanged == 'true'
5858 id : save-cache
5959 uses : actions/cache/save@v3
6060 with :
You can’t perform that action at this time.
0 commit comments