Skip to content

Commit

Permalink
Fix command interpolation in commit message
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
SIMULATAN authored Dec 3, 2024
1 parent 2ba614b commit de47f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
git config --global user.email "${{ github.event.head_commit.author.email }}"
git config --global user.name "${{ github.event.head_commit.author.name }}"
message="${{ github.event.head_commit.message }}"
message='${{ github.event.head_commit.message }}'
# use regex to replace ` #xx` with ` repo#xx`
message="$(echo "$message" | perl -pi -e 's/(?<=\W)(#|GH-)(\d+)(?=\W|$)/'"${{ github.repository_owner }}\/$REPO_NAME"'#$2/gm')"
Expand Down

0 comments on commit de47f71

Please sign in to comment.