Skip to content

Commit

Permalink
chore(workflows): fix edge case in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Nov 11, 2023
1 parent e279cd1 commit 7a1b2d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
with:
script: |
const semver = context.ref.replace('refs/tags/v', '')
const tag = "${{ github.event.release.tag_name }}";
const semver = tag.replace('v', '');
if (semver.match(/^[0-9]+\.[0-9]+\.[0-9]+$/)) {
return semver
}
Expand Down

0 comments on commit 7a1b2d7

Please sign in to comment.