Skip to content

Commit

Permalink
Merge pull request #238 from alley-rs/0.1.X
Browse files Browse the repository at this point in the history
chore(action): fix delete error
  • Loading branch information
thep0y authored Aug 4, 2024
2 parents 46ff678 + 7a5b222 commit e07ada7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ jobs:
release_id=$(curl -s 'https://api.github.com/repos/alley-rs/fluxy/releases/tags/nightly' | awk -F'[{},:]+' '/^ "id"/ {print $2}' | xargs)
echo "RELEASE_ID=$release_id" >> $GITHUB_ENV
- name: delete old nightly release
uses: actions/github-script@v7
if: env.RELEASE_ID != ''
with:
script: |
await github.rest.repos.deleteRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: process.env.RELEASE_ID,
})
# - name: delete old nightly release
# uses: actions/github-script@v7
# if: env.RELEASE_ID != ''
# with:
# script: |
# await github.rest.repos.deleteRelease({
# owner: context.repo.owner,
# repo: context.repo.repo,
# release_id: process.env.RELEASE_ID,
# })

- name: delete old nightly release tag
- name: delete old nightly release
if: env.RELEASE_ID != ''
run: gh release delete nightly --cleanup-tag
env:
Expand Down

0 comments on commit e07ada7

Please sign in to comment.