Skip to content

Commit

Permalink
Merge pull request #10655 from geekosaur/cleanup-token
Browse files Browse the repository at this point in the history
The release cleanup action requires a token
  • Loading branch information
mergify[bot] authored Dec 20, 2024
2 parents fc186ef + ad266b1 commit 5ec4dd1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 5ec4dd1

Please sign in to comment.