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 a9ccac7 commit 65342c4
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,16 @@ jobs:
PR_BRANCH: release-ci-${{ github.run_id }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Debug PR_BRANCH
run: |
echo "PR_BRANCH: ${{ env.PR_BRANCH }}"
- name: Debug Git History
run: |
git log --oneline
- 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@v6
id: changelog
with:
github-token: ${{ github.token }}
Expand All @@ -52,15 +44,24 @@ jobs:
skip-git-pull: true
output-file: false
create-summary: true
skip-on-empty: false

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

- name: Create Changelog PR
if: steps.changelog.outputs.skipped == 'false'
run: |
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 }}
GH_TOKEN: ${{ github.token }}

- name: Approve Changelog PR
if: steps.changelog.outputs.skipped == 'false'
run: |
gh pr review --approve ${{ env.PR_BRANCH }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_ANDREJ }}

- name: Merge Changelog PR
if: steps.changelog.outputs.skipped == 'false'
run: |
gh pr merge --squash --auto --delete-branch ${{ env.PR_BRANCH }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_ANDREJ }}

0 comments on commit 65342c4

Please sign in to comment.