From dfd25f2edb7d4eeb577cf4d696e3a6f910493402 Mon Sep 17 00:00:00 2001 From: Dennis Dyatlov Date: Wed, 6 Nov 2024 13:40:14 +0000 Subject: [PATCH] fix pr creation --- .github/workflows/rs-release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rs-release.yml b/.github/workflows/rs-release.yml index 3bc5bb3a..ca852097 100644 --- a/.github/workflows/rs-release.yml +++ b/.github/workflows/rs-release.yml @@ -19,6 +19,7 @@ env: sails-macros sails-rs sails-cli + MAIN_BRANCH: master jobs: prepare: @@ -197,13 +198,13 @@ jobs: - name: Create Sync PR run: | curl -X POST \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github+json" \ https://api.github.com/repos/${{ github.repository }}/pulls \ -d '{ - "title": "chore: sync release v${{ needs.prepare.outputs.r_version }} to main", + "title": "chore: sync release v${{ needs.prepare.outputs.r_version }} to $MAIN_BRANCH", "head": "${{ needs.prepare.outputs.rc_branch }}", - "base": "main", + "base": "$MAIN_BRANCH", "body": "This PR was created by GitHub Actions" }'