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 8, 2024
1 parent c46dc20 commit bd4cb37
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
id: determine_tag
uses: actions/github-script@v7
with:
debug: true
# noinspection TypeScriptUnresolvedReference
script: |
let tag = context.inputs.tag
Expand All @@ -37,14 +38,17 @@ jobs:
ref: "tags/v"
}).data
console.log(JSON.stringify(refs))
let tags = await Promise.all(
refs.map(async ref => await github.rest.git.getTag({
refs.map(
async ref => await github.rest.git.getTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag_sha: ref.object.sha
}).data
))
.sort(tag => Date.parse(tag.tagger.date))
)
).sort(tag => Date.parse(tag.tagger.date))
tag = tags[tags.length - 1]
}
console.log(`Using tag: ${tag.tag}`)
Expand Down

0 comments on commit bd4cb37

Please sign in to comment.