1
0
This commit is contained in:
Stephan 2021-12-10 17:42:04 +01:00
parent 4e8f7f271f
commit 5595250e09

View File

@ -10,12 +10,14 @@ jobs:
with: with:
script: | script: |
const tag = "v" + "${{ github.ref }}".substring(19) const tag = "v" + "${{ github.ref }}".substring(19)
try {
const rel = github.repos.getReleaseByTag({ const rel = github.repos.getReleaseByTag({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
tag: tag tag: tag
}) })
if (rel === null) { }
catch {
core.setFailed("Could not find a release for tag " + tag) core.setFailed("Could not find a release for tag " + tag)
} }