Skip to content

Commit

Permalink
ci: Use sed to extract PR-number
Browse files Browse the repository at this point in the history
  • Loading branch information
mmichaelis committed Dec 8, 2023
1 parent 846ae31 commit 2f77cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/get-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
ref="${{ github.ref }}"
run="${{ github.run_number }}"
# Keep only the number.
pullRequestNumber="$(expr match "${ref}" '.*/\([0-9]*\)/.*')"
pullRequestNumber="$(echo "$ref" | sed "s#^.*/\([0-9]*\)/.*\$#\1#g")"
version=$(pnpm --silent "script:version" --pull-request ${pullRequestNumber} --run-number ${run})
echo "VERSION=${version}" >> $GITHUB_ENV
- id: unmatched-release-type
Expand Down

0 comments on commit 2f77cc5

Please sign in to comment.