From ad266b130fe6b0de7620530eb200581120440291 Mon Sep 17 00:00:00 2001 From: brandon s allbery kf8nh Date: Thu, 19 Dec 2024 19:15:07 -0500 Subject: [PATCH] The release cleanup action requires a token --- .github/workflows/validate.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 17c6ff9d3f2..cb466e7f9c0 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -467,6 +467,7 @@ jobs: - uses: liudonghua123/delete-release-action@v1 with: release_name: 'cabal-head' + token: ${{ github.token }} - uses: actions/download-artifact@v4 with: @@ -485,7 +486,7 @@ jobs: name: Create a GitHub LTS prerelease with the binary artifacts runs-on: ubuntu-latest # The LTS branch is hardcoded for now, update it on a new LTS! - # if: github.ref == 'refs/heads/3.12' + if: github.ref == 'refs/heads/3.12' permissions: contents: write @@ -496,6 +497,7 @@ jobs: - uses: liudonghua123/delete-release-action@v1 with: release_name: 'cabal-lts-head' + token: ${{ github.token }} - uses: actions/download-artifact@v4 with: @@ -510,10 +512,7 @@ jobs: mv "$f" "cabal-lts-${f##cabal-}" done - - run: echo ${{ github.ref }} - - name: Create GitHub prerelease - if: github.ref == 'refs/heads/3.12' uses: softprops/action-gh-release@v2 with: tag_name: cabal-lts-head