Skip to content

Commit

Permalink
Use backticks instead of quotes
Browse files Browse the repository at this point in the history
This should fix parsing for multiline commit messages
  • Loading branch information
Gethe committed Dec 27, 2021
1 parent c72b335 commit 1e328f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}";
Expand Down

0 comments on commit 1e328f8

Please sign in to comment.