This commit is contained in:
Stephan 2021-12-12 22:26:18 +01:00
parent 30bcef5c7f
commit 8add493c77

View File

@ -23,6 +23,11 @@ jobs:
core.setFailed(`Not confirmed (confirm = '${{ github.event.inputs.confirm }}').`)
}
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Validate the release
uses: actions/github-script@v4
with:
@ -30,7 +35,7 @@ jobs:
# token needed to see draft releases when getting all releases
github-token: ${{ secrets.MY_GITHUB_TOKEN_TESTREPO }}
script: |
const hz = require("hz.js")(github, context)
const hz = require("./.github/workflows/hz.js")(github, context)
const ref = "${{ github.ref }}"
const tag = hz.getRefReleaseTag(ref)
if (tag === null) {
@ -60,11 +65,6 @@ jobs:
}
// everything is OK
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure repository
shell: bash
run: |
@ -85,7 +85,7 @@ jobs:
uses: actions/github-script@v4
with:
script: |
const hz = require("hz.js")(github, context)
const hz = require("./.github/workflows/hz.js")(github, context)
const ref = "${{ github.ref }}"
const tag = hz.getRefReleaseTag(ref)
if (tag === null) {