exp
This commit is contained in:
parent
7688e0cbc7
commit
3b98325435
6
.github/workflows/publish-release.yml
vendored
6
.github/workflows/publish-release.yml
vendored
|
@ -9,17 +9,23 @@ 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 {
|
||||||
|
console.log('X1')
|
||||||
const rel = github.repos.getReleaseByTag({
|
const rel = github.repos.getReleaseByTag({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
tag: tag
|
tag: tag
|
||||||
})
|
})
|
||||||
|
console.log('X2')
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
console.log('X3')
|
||||||
core.setFailed("Could not find a release for tag " + tag)
|
core.setFailed("Could not find a release for tag " + tag)
|
||||||
|
console.log('X4')
|
||||||
}
|
}
|
||||||
|
console.log('X5')
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user