This commit is contained in:
Stephan 2021-12-10 18:17:13 +01:00
parent 6a103e03a3
commit 4e2e9638b6

View File

@ -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