Skip to content

Commit

Permalink
fix(publish-to-monorepo): reference stuff not using owner (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
SIMULATAN committed Nov 23, 2024
1 parent 96c9416 commit 2ba614b
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 @@ -56,7 +56,7 @@ jobs:
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|$)/'"$REPO_NAME"'#$2/gm')"
message="$(echo "$message" | perl -pi -e 's/(?<=\W)(#|GH-)(\d+)(?=\W|$)/'"${{ github.repository_owner }}\/$REPO_NAME"'#$2/gm')"
git commit -m "[$REPO_NAME] $message" -m "Mirrored from ${{ github.event.head_commit.url }}"
Expand Down

0 comments on commit 2ba614b

Please sign in to comment.