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