wtf
This commit is contained in:
parent
6a103e03a3
commit
4e2e9638b6
5
.github/workflows/publish-release.yml
vendored
5
.github/workflows/publish-release.yml
vendored
|
@ -11,6 +11,7 @@ jobs:
|
||||||
script: |
|
script: |
|
||||||
console.log('X0')
|
console.log('X0')
|
||||||
const tag = "v" + "${{ github.ref }}".substring(19)
|
const tag = "v" + "${{ github.ref }}".substring(19)
|
||||||
|
try {
|
||||||
const rel = await 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,
|
||||||
|
@ -21,6 +22,10 @@ jobs:
|
||||||
core.setFailed("Could not find a release for tag " + tag)
|
core.setFailed("Could not find a release for tag " + tag)
|
||||||
}
|
}
|
||||||
console.log('X2')
|
console.log('X2')
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
console.log('X3')
|
||||||
|
}
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user