Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

ci: :construction_worker: debugging changelog pipeline

Andrej65342c446e43
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
index ecaaa1b37..ab6cb3900 100644
--- a/.github/workflows/changelog.yml
+++ b/.github/workflows/changelog.yml
@@ -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 }}
@@ -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 }}
\ No newline at end of file
+ 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 }}
\ No newline at end of file