Skip to content

Commit

Permalink
amend gh line
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidious committed Oct 13, 2023
1 parent 969c262 commit be4fc2f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ runs:
echo "Pull request ID: $pullRequestID"
# Get the version number from the pull request title e.g. 1.33.7
# comment | grep -E -o '\d+.\d+.\d+' | awk '{print $NF}'
versionNumber=$(gh pr view $pullRequestID --repo ${{ github.repository }} --json title --jq '.title')
versionNumber=$(gh pr view $pullRequestID --repo ${{ github.repository }} --json title --jq '.title') | grep -E -o '\d+.\d+.\d+'
echo "version-number=$versionNumber" >> $GITHUB_OUTPUT

0 comments on commit be4fc2f

Please sign in to comment.