From 8add493c770e3fe1a45003806a124dd3ad22bb74 Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 12 Dec 2021 22:26:18 +0100 Subject: [PATCH] wtf --- .github/workflows/publish-release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 9af89bc..53cd356 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -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) {