Skip to content

Commit cadc07b

Browse files
committed
Replace archived gh-actions-cache extension with direct gh command
The functionality has been integrated directly into the `gh` CLI. See: - https://github.com/actions/gh-actions-cache
1 parent 58ac8af commit cadc07b

3 files changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/draft-release-flutter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
name: Create a new GitHub draft release
9393
if: github.ref_type == 'tag'
9494
env:
95-
GH_TOKEN: ${{ github.token }}
95+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9696
run: |
9797
gh release create "${GITHUB_REF_NAME}" \
9898
--draft \

.github/workflows/draft-release-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
name: Create a new GitHub draft release
3535
if: github.ref_type == 'tag'
3636
env:
37-
GH_TOKEN: ${{ github.token }}
37+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
run: |
3939
gh release create "${GITHUB_REF_NAME}" \
4040
--draft \

.github/workflows/flush-caches.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ jobs:
1919
env:
2020
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2121
run: |
22-
gh extension install actions/gh-actions-cache
23-
REPO="${{ github.repository }}"
24-
BRANCH="${GITHUB_REF}"
25-
cache_keys=$(gh actions-cache list -R "$REPO" -B "$BRANCH" | cut -f 1)
26-
set +e
27-
for key in $cache_keys; do
28-
gh actions-cache delete "$key" -R "$REPO" -B "$BRANCH" --confirm
29-
done
22+
gh cache delete --all \
23+
--repo "${{ github.repository }}" \
24+
--ref "${{ github.ref }}" \
25+
--succeed-on-no-caches

0 commit comments

Comments
 (0)