wtf
This commit is contained in:
parent
4e2e9638b6
commit
55e21143a9
8
.github/workflows/publish-release.yml
vendored
8
.github/workflows/publish-release.yml
vendored
|
@ -9,7 +9,6 @@ jobs:
|
||||||
uses: actions/github-script@v4
|
uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
console.log('X0')
|
|
||||||
const tag = "v" + "${{ github.ref }}".substring(19)
|
const tag = "v" + "${{ github.ref }}".substring(19)
|
||||||
try {
|
try {
|
||||||
const rel = await github.repos.getReleaseByTag({
|
const rel = await github.repos.getReleaseByTag({
|
||||||
|
@ -17,14 +16,9 @@ jobs:
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
tag: tag
|
tag: tag
|
||||||
})
|
})
|
||||||
console.log('X1')
|
|
||||||
if (rel === null) {
|
|
||||||
core.setFailed("Could not find a release for tag " + tag)
|
|
||||||
}
|
|
||||||
console.log('X2')
|
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
console.log('X3')
|
core.setFailed("Could not find a release for tag " + tag)
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
Loading…
Reference in New Issue
Block a user