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 1246167 commit 2426a63
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,17 @@ jobs:
with:
fetch-depth: 0

- name: Debug PR_BRANCH
- name: Install jq
run: |
echo "PR_BRANCH: ${{ env.PR_BRANCH }}"
- name: Debug Git History
run: |
git log --oneline
sudo apt-get update
sudo apt-get install -y jq
- name: Create Branch
run: |
git checkout -b ${{ env.PR_BRANCH }} || git checkout ${{ env.PR_BRANCH }}
- name: Create Changelog
uses: TriPSs/conventional-changelog-action@v3 # Use the latest version
uses: TriPSs/conventional-changelog-action@v3
id: changelog
with:
github-token: ${{ github.token }}
Expand All @@ -53,17 +50,13 @@ jobs:
output-file: false
create-summary: true
skip-on-empty: false
include-all: true

- name: Debug Changelog Output
run: |
echo "Changelog Output: ${{ steps.changelog.outputs.clean_changelog }}"

- name: Create Changelog PR
if: steps.changelog.outputs.skipped == 'false'
run: |
body=$(echo '${{ steps.changelog.outputs.clean_changelog }}' | sed "s/'/'\\\\''/g")
gh pr create --base main --head ${{ env.PR_BRANCH }} --title 'chore(release): ${{ steps.changelog.outputs.tag }} [skip-ci]' --body "$body" env:
body=$(echo '${{ steps.changelog.outputs.clean_changelog }}' | jq -Rs .)
gh pr create --base main --head ${{ env.PR_BRANCH }} --title 'chore(release): ${{ steps.changelog.outputs.tag }} [skip-ci]' --body "$body"
env:
GH_TOKEN: ${{ github.token }}

- name: Approve Changelog PR
Expand Down

0 comments on commit 2426a63

Please sign in to comment.