wtf
This commit is contained in:
parent
30bcef5c7f
commit
8add493c77
14
.github/workflows/publish-release.yml
vendored
14
.github/workflows/publish-release.yml
vendored
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user