Skip to content

Commit

Permalink
head -1
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Jan 22, 2024
1 parent bca22a0 commit c3b45b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ jobs:
- name: Prepend CHANGELOG template
env:
CHANGES_TEMPLATE: ${{ inputs.changes_template }}
run: sed -i "$(sed -n '0,/^## /=' CHANGELOG.md)i $(echo "${CHANGES_TEMPLATE}" | sed -r 's/$/\\n/' | while IFS= read -r line; do echo -n "$line"; done)" CHANGELOG.md
run: sed -i "$(sed -n '/^## /=' CHANGELOG.md | head -1)i $(echo "${CHANGES_TEMPLATE}" | sed -r 's/$/\\n/' | while IFS= read -r line; do echo -n "$line"; done)" CHANGELOG.md
- name: Update CHANGELOG.md (prepend template)
run: |
git commit -am "[skip ci] Update CHANGELOG.md (prepend template)"
Expand Down

0 comments on commit c3b45b3

Please sign in to comment.