Skip to content

Commit

Permalink
fix pr creation
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisInSky committed Nov 6, 2024
1 parent 2fd4814 commit dfd25f2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/rs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ env:
sails-macros
sails-rs
sails-cli
MAIN_BRANCH: master

jobs:
prepare:
Expand Down Expand Up @@ -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"
}'
Expand Down

0 comments on commit dfd25f2

Please sign in to comment.