Skip to content

Commit

Permalink
cleanup-cache: Run gh extension install with GitHub token
Browse files Browse the repository at this point in the history
The gh CLI always complains in a GitHub Actions workflow without a token.
  • Loading branch information
auscompgeek committed Feb 12, 2024
1 parent d3863d9 commit 58d5646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cleanup-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- run: gh extension install actions/gh-actions-cache

- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1)
# Turn off errexit to not fail the workflow while deleting cache keys.
Expand Down

0 comments on commit 58d5646

Please sign in to comment.