Skip to content

Commit

Permalink
chore: update permission of auto-merge action
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed Mar 21, 2024
1 parent b363288 commit e196e45
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/merge-master-to-develop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Merge master to develop

permissions:
pull-requests: write

on:
push:
branches:
Expand All @@ -16,8 +19,8 @@ jobs:
with:
source_branch: master
destination_branch: develop
pr_title: 'Merge released ${{ github.ref }} into develop'
pr_title: "Merge released ${{ github.ref }} into develop"
pr_reviewer: keith-cy
pr_label: auto-pr
pr_body: ':crown: *Anautomated PR*'
pr_body: ":crown: *Anautomated PR*"
github_token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 8 additions & 5 deletions .github/workflows/request-to-deploy-mainnet.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Request to deploy mainnet

permissions:
pull-requests: write

on:
push:
branches: [testnet]
Expand All @@ -13,9 +16,9 @@ jobs:
- name: Request PR
uses: repo-sync/pull-request@v2
with:
source_branch: 'testnet'
destination_branch: 'master'
pr_title: 'Deploy to mainnet'
pr_reviewer: 'rabbitz,zmcNotafraid,keith-cy'
pr_label: 'auto-pr'
source_branch: "testnet"
destination_branch: "master"
pr_title: "Deploy to mainnet"
pr_reviewer: "rabbitz,zmcNotafraid,keith-cy"
pr_label: "auto-pr"
github_token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 8 additions & 5 deletions .github/workflows/request-to-deploy-testnet.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Request to deploy testnet

permissions:
pull-requests: write

on:
push:
branches: [develop]
Expand All @@ -13,9 +16,9 @@ jobs:
- name: Request PR
uses: repo-sync/pull-request@v2
with:
source_branch: 'develop'
destination_branch: 'testnet'
pr_title: 'Deploy to testnet'
pr_reviewer: 'rabbitz,zmcNotafraid,keith-cy'
pr_label: 'auto-pr'
source_branch: "develop"
destination_branch: "testnet"
pr_title: "Deploy to testnet"
pr_reviewer: "rabbitz,zmcNotafraid,keith-cy"
pr_label: "auto-pr"
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e196e45

Please sign in to comment.