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

Andrejdd4ad495e9a8
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
index 7fc5dcfb3..aab08e784 100644
--- a/.github/workflows/changelog.yml
+++ b/.github/workflows/changelog.yml
@@ -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 }}