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 dd4ad49 commit 0d077ea
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: Changelog

on:
push:
branches:
Expand Down Expand Up @@ -44,7 +42,7 @@ jobs:
git checkout -b ${{ env.PR_BRANCH }} || git checkout ${{ env.PR_BRANCH }}
- name: Create Changelog
uses: TriPSs/conventional-changelog-action@v4
uses: TriPSs/conventional-changelog-action@v3 # Use the latest version
id: changelog
with:
github-token: ${{ github.token }}
Expand All @@ -63,19 +61,7 @@ jobs:
- name: Create Changelog PR
if: steps.changelog.outputs.skipped == 'false'
run: |
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
gh pr create --base main --head ${{ env.PR_BRANCH }} --title 'chore(release): ${{ steps.changelog.outputs.tag }} [skip-ci]' --body "${{ steps.changelog.outputs.clean_changelog }}"
env:
GH_TOKEN: ${{ github.token }}

Expand Down

0 comments on commit 0d077ea

Please sign in to comment.