Skip to content

Commit

Permalink
Debug release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shBLOCK committed May 9, 2024
1 parent 264b7ea commit 0254890
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:

source_dists:
name: Source Dists
runs-on: windows-latest
runs-on: ubuntu-latest
needs: [codegen, prep]
steps:
- name: Checkout
Expand Down Expand Up @@ -198,19 +198,19 @@ jobs:
name: dists_src
path: dist

- name: Remove Prior Release
- name: Remove Old Release
uses: actions/github-script@v7
env:
TAG_NAME: ${{ needs.prep.outputs.tag }}
with:
# noinspection TypeScriptUnresolvedReference
script: |
const tag = process.env.TAG_NAME
const release = await github.rest.repos.getReleaseByTag({
const release = (await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag
})
})).data
if (release.id == undefined) { // Not found
core.info(`No release with tag ${tag}.`)
} else {
Expand All @@ -219,7 +219,7 @@ jobs:
repo: context.repo.repo,
release_id: release.id
})
core.notice(`Deleted prior github release: ${tag}`)
core.notice(`Deleted old github release: ${tag}`)
}
- name: Create Release
Expand Down

0 comments on commit 0254890

Please sign in to comment.