1
0
This commit is contained in:
Stephan 2021-12-10 18:04:43 +01:00
parent 3b98325435
commit 5ef1917f61

View File

@ -11,6 +11,15 @@ jobs:
script: | script: |
console.log('X0') console.log('X0')
const tag = "v" + "${{ github.ref }}".substring(19) const tag = "v" + "${{ github.ref }}".substring(19)
const rel = await github.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag
})
if (rel === null) {
core.setFailed("Could not find a release for tag " + tag)
}
/*
try { try {
console.log('X1') console.log('X1')
const rel = github.repos.getReleaseByTag({ const rel = github.repos.getReleaseByTag({
@ -26,6 +35,7 @@ jobs:
console.log('X4') console.log('X4')
} }
console.log('X5') console.log('X5')
*/
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -48,12 +58,12 @@ jobs:
with: with:
script: | script: |
const tag = "v" + "${{ github.ref }}".substring(19) const tag = "v" + "${{ github.ref }}".substring(19)
const rel = github.repos.getReleaseByTag({ const rel = await github.repos.getReleaseByTag({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
tag: tag tag: tag
}) })
github.repos.updateRelease({ await github.repos.updateRelease({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
release_id: rel.id, release_id: rel.id,