diff --git a/.github/workflows/tag_beta.yml b/.github/workflows/tag_beta.yml index c1759f89..791a3943 100644 --- a/.github/workflows/tag_beta.yml +++ b/.github/workflows/tag_beta.yml @@ -18,7 +18,7 @@ jobs: script: | const { owner, repo } = context.repo const regex = /\d+\.\d+\.\d+\.\d+/g; - if (regex.test("${{ github.event.head_commit.message }}")) { + if (regex.test(`${{ github.event.head_commit.message }}`)) { const run_id = "${{ github.run_id }}"; await github.actions.cancelWorkflowRun({ owner, repo, run_id }); } else { diff --git a/.github/workflows/tag_release.yml b/.github/workflows/tag_release.yml index 47ed728d..87978ba1 100644 --- a/.github/workflows/tag_release.yml +++ b/.github/workflows/tag_release.yml @@ -18,7 +18,7 @@ jobs: script: | const { owner, repo } = context.repo const regex = /\d+\.\d+\.\d+\.\d+/g; - if (regex.test("${{ github.event.head_commit.message }}")) { + if (regex.test(`${{ github.event.head_commit.message }}`)) { return "build" } else { const run_id = "${{ github.run_id }}";