Skip to content

Commit

Permalink
ci: Detach the commit body of assign-pr-number (#3309)
Browse files Browse the repository at this point in the history
Co-authored-by: Joongi Kim <[email protected]>
Co-authored-by: octodog <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2025
1 parent 2515edf commit 81bb74e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/assign-pr-number.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref}}
ref: ${{ github.head_ref }}
fetch-depth: 2
lfs: false
token: ${{ secrets.WORKFLOW_PAT }}
Expand Down Expand Up @@ -46,7 +46,8 @@ jobs:
git config user.name "$author_name"
if [ -n "$(git diff --staged)" ]; then
git commit \
-m "docs: Rename the news fragment with the PR number\n\n${{ join(fromJSON(steps.assign_pr_number.outputs.rename_results), '\n') }}" \
-m 'docs: Rename the news fragment with the PR number' \
-m $'${{ join(fromJSON(steps.assign_pr_number.outputs.rename_results), '\n') }}' \
--author="$author_name <$author_email>" \
--trailer "Co-authored-by: octodog <[email protected]>"
git push
Expand Down
1 change: 1 addition & 0 deletions changes/3309.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the commit message format when assigning the PR number to an anonymous news fragment

0 comments on commit 81bb74e

Please sign in to comment.