Skip to content

Commit 7ec1fc9

Browse files
committed
Try using object syntax not literal syntax for js regex
1 parent 8b86413 commit 7ec1fc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
uses: actions/github-script@v4
3838
id: extract-version
3939
with:
40-
script: return /refs\/tags\/servirtium\.core\/v(.+)/.exec(github.ref)[1]
40+
script: |
41+
return new RegExp("refs\\/tags\\/servirtium\\.core\\/v(.+)").exec(github.ref)[1]
4142
- name: Dump steps context
4243
env:
4344
STEPS_CONTEXT: ${{ toJSON(steps) }}

0 commit comments

Comments
 (0)