Skip to content

Commit d380851

Browse files
committed
chore: test with a different command
1 parent 04caed6 commit d380851

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ on:
77

88
permissions:
99
contents: read
10-
actions: write # this permission is needed to delete cache
1110

1211
jobs:
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
@@ -50,9 +51,15 @@ jobs:
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

0 commit comments

Comments
 (0)