Skip to content

Commit

Permalink
read git ref from correct place in release-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhand committed Jul 5, 2021
1 parent abc9131 commit ac13158
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ jobs:
uses: actions/github-script@v4
id: extract-version
with:
script: |
console.log(`github.ref: ${github.ref}`);
console.log(`github: ${JSON.stringify(github)}`);
console.log(`context: ${JSON.stringify(context)}`);
return new RegExp("refs\\/tags\\/servirtium\\.core\\/v(.+)").exec(github.ref)[1];
script: return /refs\/tags\/servirtium\.core\/v(.+)/.exec(context.ref)[1]
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJSON(steps) }}
Expand Down

0 comments on commit ac13158

Please sign in to comment.