Skip to content

Commit

Permalink
fix: use env for GH_TOKEN (#15253)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikburt authored Nov 18, 2024
1 parent 7cd17d6 commit d1703b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/delete-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ jobs:
uses: actions/[email protected]

- name: Setup gh-actions-cache extension
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh extension install actions/gh-actions-cache

- name: Retrieve Trunk SHA
id: get-sha
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
SHA=$(gh pr view -R $REPO $PR_NUMBER --json mergeCommit --jq .mergeCommit.oid)
echo "sha=$SHA" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit d1703b7

Please sign in to comment.