From e196e457c85ad2cc798ca58067b014574f3cb7ec Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Thu, 21 Mar 2024 17:36:03 +0800 Subject: [PATCH] chore: update permission of auto-merge action Signed-off-by: Miles Zhang --- .github/workflows/merge-master-to-develop.yml | 7 +++++-- .github/workflows/request-to-deploy-mainnet.yml | 13 ++++++++----- .github/workflows/request-to-deploy-testnet.yml | 13 ++++++++----- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/.github/workflows/merge-master-to-develop.yml b/.github/workflows/merge-master-to-develop.yml index d5e8a7de3..e4ec51d67 100644 --- a/.github/workflows/merge-master-to-develop.yml +++ b/.github/workflows/merge-master-to-develop.yml @@ -1,5 +1,8 @@ name: Merge master to develop +permissions: + pull-requests: write + on: push: branches: @@ -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 }} diff --git a/.github/workflows/request-to-deploy-mainnet.yml b/.github/workflows/request-to-deploy-mainnet.yml index 3703c9d21..f4821c86b 100644 --- a/.github/workflows/request-to-deploy-mainnet.yml +++ b/.github/workflows/request-to-deploy-mainnet.yml @@ -1,5 +1,8 @@ name: Request to deploy mainnet +permissions: + pull-requests: write + on: push: branches: [testnet] @@ -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 }} diff --git a/.github/workflows/request-to-deploy-testnet.yml b/.github/workflows/request-to-deploy-testnet.yml index 440f4586c..fdd1a1938 100644 --- a/.github/workflows/request-to-deploy-testnet.yml +++ b/.github/workflows/request-to-deploy-testnet.yml @@ -1,5 +1,8 @@ name: Request to deploy testnet +permissions: + pull-requests: write + on: push: branches: [develop] @@ -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 }}