Skip to content

Commit 7fd534f

Browse files
committed
CI: try another way of deleting the cache
1 parent 51629cc commit 7fd534f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
16+
permissions:
17+
actions: write
1618

1719
steps:
1820
- uses: actions/checkout@v4
@@ -52,7 +54,7 @@ jobs:
5254
run: |
5355
gh api --method DELETE -H "Accept: application/vnd.github+json" /repos/scijava/pom-scijava/actions/caches?key=${{ runner.os }}-cache || true
5456
env:
55-
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5658

5759
- name: Save the melting-pot cache
5860
if: env.cacheChanged == 'true'

0 commit comments

Comments
 (0)