chore: Add permissions to open pull request action

This commit is contained in:
LisoUseInAIKyrios committed 2026-07-05 19:32:14 +03:00
1 parent d5915aa115
commit bc6b723a94
1 file changed
+5
+5
View File
@@ -6,6 +6,10 @@ on:
- dev - dev
workflow_dispatch: workflow_dispatch:
permissions:
pull-requests: write
contents: read
env: env:
MESSAGE: Merge branch `${{ github.head_ref || github.ref_name }}` to `main` MESSAGE: Merge branch `${{ github.head_ref || github.ref_name }}` to `main`
@@ -20,6 +24,7 @@ jobs:
- name: Open pull request - name: Open pull request
uses: repo-sync/pull-request@v2 uses: repo-sync/pull-request@v2
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_branch: 'main' destination_branch: 'main'
pr_title: 'chore: ${{ env.MESSAGE }}' pr_title: 'chore: ${{ env.MESSAGE }}'
pr_body: 'This pull request will ${{ env.MESSAGE }}.' pr_body: 'This pull request will ${{ env.MESSAGE }}.'