wtf
This commit is contained in:
parent
6a103e03a3
commit
4e2e9638b6
23
.github/workflows/publish-release.yml
vendored
23
.github/workflows/publish-release.yml
vendored
|
@ -11,16 +11,21 @@ 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({
|
try {
|
||||||
owner: context.repo.owner,
|
const rel = await github.repos.getReleaseByTag({
|
||||||
repo: context.repo.repo,
|
owner: context.repo.owner,
|
||||||
tag: tag
|
repo: context.repo.repo,
|
||||||
})
|
tag: tag
|
||||||
console.log('X1')
|
})
|
||||||
if (rel === null) {
|
console.log('X1')
|
||||||
core.setFailed("Could not find a release for tag " + tag)
|
if (rel === null) {
|
||||||
|
core.setFailed("Could not find a release for tag " + tag)
|
||||||
|
}
|
||||||
|
console.log('X2')
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
console.log('X3')
|
||||||
}
|
}
|
||||||
console.log('X2')
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user