Skip to content

Commit

Permalink
ci: 👷 debugging changelog pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
aacevski committed Jan 26, 2025
1 parent 1f6fee8 commit dd4ad49
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,19 @@ jobs:
- name: Create Changelog PR
if: steps.changelog.outputs.skipped == 'false'
run: |
echo '${{ steps.changelog.outputs.clean_changelog }}' > changelog_body.txt
gh pr create --base main --head ${{ env.PR_BRANCH }} --title 'chore(release): ${{ steps.changelog.outputs.tag }} [skip-ci]' --body-file changelog_body.txt
body=$(echo '${{ steps.changelog.outputs.clean_changelog }}' | jq -Rs .)
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ github.token }}" \
https://api.github.com/repos/${{ github.repository }}/pulls \
-d @- <<EOF
{
"title": "chore(release): ${{ steps.changelog.outputs.tag }} [skip-ci]",
"head": "${{ env.PR_BRANCH }}",
"base": "main",
"body": $body
}
EOF
env:
GH_TOKEN: ${{ github.token }}

Expand Down

0 comments on commit dd4ad49

Please sign in to comment.