File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 77
88permissions :
99 contents : read
10- actions : write # this permission is needed to delete cache
1110
1211jobs :
1312 compile :
13+ permissions :
14+ actions : write # this permission is needed to delete cache
1415 strategy :
1516 fail-fast : false
1617 runs-on : ubuntu-latest
5051 # For main branch delete cache and save new compilation result
5152 - name : Delete Cache (Push)
5253 # if: ${{ github.event_name == 'push' }}
53- run : gh cache delete compile-cache-main
54+ # run: gh cache delete compile-cache-main
55+ run : |
56+ gh api \
57+ --method DELETE \
58+ -H "Accept: application/vnd.github+json" \
59+ -H "X-GitHub-Api-Version: 2022-11-28" \
60+ /repos/open-telemetry/opentelemetry-js-contrib/actions/caches/compile-cache-main
5461 env :
55- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5663 - name : Update Cache (Push)
5764 # if: ${{ github.event_name == 'push' }}
5865 uses : actions/cache/save@v4
You can’t perform that action at this time.
0 commit comments