1
0

Compare commits

...

4 Commits

Author SHA1 Message Date
GitHub Actions
be3cb4b259 Foo 2021-12-10 18:02:09 +00:00
Stephan
788aa0d4b5 meh 2021-12-10 19:01:50 +01:00
Stephan
490cc0c703 muh 2021-12-10 18:58:57 +01:00
Stephan
cfd959c2e0 pii 2021-12-10 18:56:29 +01:00
3 changed files with 8 additions and 5 deletions

View File

@ -11,19 +11,20 @@ jobs:
script: |
const ver = "${{ github.ref }}".substring(19)
const tag = "v" + ver
var rel
try {
const rel = await github.repos.getReleaseByTag({
rel = await github.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag
})
}
catch (error) {
core.setFailed(`Could not find a release for tag '${tag}'.`)
core.setFailed(`Could not find a release for tag ${tag}.`)
return
}
if (rel.draft) {
core.setFailed(`Release for tag '${tag}' is already published.`)
if (!rel.draft) {
core.setFailed(`Release for tag ${tag} is already published.`)
return
}
try {
@ -32,7 +33,7 @@ jobs:
repo: context.repo.repo,
ref: 'tags/' + tag
})
core.setFailed(`Tag '${tag}' already exists.`)
core.setFailed(`Tag ${tag} already exists.`)
return
}
catch (error) {

View File

@ -1 +1,2 @@
foo
foo

1
pii.txt Normal file
View File

@ -0,0 +1 @@
pii