diff --git a/.github/workflows/draft-release-flutter.yml b/.github/workflows/draft-release-flutter.yml index 0d4dceb..1fd0f81 100644 --- a/.github/workflows/draft-release-flutter.yml +++ b/.github/workflows/draft-release-flutter.yml @@ -92,7 +92,7 @@ jobs: name: Create a new GitHub draft release if: github.ref_type == 'tag' env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release create "${GITHUB_REF_NAME}" \ --draft \ diff --git a/.github/workflows/draft-release-rust.yml b/.github/workflows/draft-release-rust.yml index 392f9d7..550c491 100644 --- a/.github/workflows/draft-release-rust.yml +++ b/.github/workflows/draft-release-rust.yml @@ -34,7 +34,7 @@ jobs: name: Create a new GitHub draft release if: github.ref_type == 'tag' env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release create "${GITHUB_REF_NAME}" \ --draft \ diff --git a/.github/workflows/flush-caches.yml b/.github/workflows/flush-caches.yml index 9fa2f51..f02653a 100644 --- a/.github/workflows/flush-caches.yml +++ b/.github/workflows/flush-caches.yml @@ -19,11 +19,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh extension install actions/gh-actions-cache - REPO="${{ github.repository }}" - BRANCH="${GITHUB_REF}" - cache_keys=$(gh actions-cache list -R "$REPO" -B "$BRANCH" | cut -f 1) - set +e - for key in $cache_keys; do - gh actions-cache delete "$key" -R "$REPO" -B "$BRANCH" --confirm - done + gh cache delete --all \ + --repo "${{ github.repository }}" \ + --ref "${GITHUB_REF}" \ + --succeed-on-no-caches