Skip to content

Commit 5ec4dd1

Browse files
authored
Merge pull request #10655 from geekosaur/cleanup-token
The release cleanup action requires a token
2 parents fc186ef + ad266b1 commit 5ec4dd1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/validate.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ jobs:
467467
- uses: liudonghua123/delete-release-action@v1
468468
with:
469469
release_name: 'cabal-head'
470+
token: ${{ github.token }}
470471

471472
- uses: actions/download-artifact@v4
472473
with:
@@ -485,7 +486,7 @@ jobs:
485486
name: Create a GitHub LTS prerelease with the binary artifacts
486487
runs-on: ubuntu-latest
487488
# The LTS branch is hardcoded for now, update it on a new LTS!
488-
# if: github.ref == 'refs/heads/3.12'
489+
if: github.ref == 'refs/heads/3.12'
489490
permissions:
490491
contents: write
491492

@@ -496,6 +497,7 @@ jobs:
496497
- uses: liudonghua123/delete-release-action@v1
497498
with:
498499
release_name: 'cabal-lts-head'
500+
token: ${{ github.token }}
499501

500502
- uses: actions/download-artifact@v4
501503
with:
@@ -510,10 +512,7 @@ jobs:
510512
mv "$f" "cabal-lts-${f##cabal-}"
511513
done
512514
513-
- run: echo ${{ github.ref }}
514-
515515
- name: Create GitHub prerelease
516-
if: github.ref == 'refs/heads/3.12'
517516
uses: softprops/action-gh-release@v2
518517
with:
519518
tag_name: cabal-lts-head

0 commit comments

Comments
 (0)