From f78359fcddb437dab981b5fbeefbf139573af8c4 Mon Sep 17 00:00:00 2001 From: anantakumarghosh Date: Sat, 3 Feb 2024 15:00:49 +0530 Subject: [PATCH] ci(config): :wrench: change token change token and script Ref: #30 --- .github/workflows/auto-create-and-merge-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-create-and-merge-pr.yml b/.github/workflows/auto-create-and-merge-pr.yml index 124a3cd..2bb13ac 100644 --- a/.github/workflows/auto-create-and-merge-pr.yml +++ b/.github/workflows/auto-create-and-merge-pr.yml @@ -5,7 +5,7 @@ on: branches: - development env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: create_and_merge_pr: runs-on: ubuntu-latest @@ -39,4 +39,4 @@ jobs: - name: Merge PR run: | pr_number=$(echo $pr_url | cut -d '/' -f 7) - gh pr merge $pr_number --auto --merge + gh pr merge $pr_number --merge --admin