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 5ab07ba commit 31ee6a9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
debug: true
# noinspection TypeScriptUnresolvedReference
script: |
console.log(JSON.stringify(context))
const specified_tag = context.payload.inputs && context.payload.inputs.tag
let tag = undefined
let commit = undefined
for await (const tags of github.paginate.iterator(
Expand All @@ -51,7 +51,7 @@ jobs:
repo: context.repo.repo,
ref: tag_data.commit.sha
})).data.commit
if (context.payload.inputs.tag) {
if (specified_tag) {
if (tag_data.name == context.payload.inputs.tag) {
tag = tag_data
commit = commit_data
Expand All @@ -64,6 +64,12 @@ jobs:
}
}
}
if (tag == undefined) {
core.setFailed("Failed to determine a tag.")
return
}
core.info(`Using tag: ${tag.name}`)
core.info(`Message: ${commit.message}`)
core.notice(`Using tag: ${tag.name}`)
Expand Down

0 comments on commit 31ee6a9

Please sign in to comment.