From f86475c442294dd1d5bf882aaea0771ea2aeffa7 Mon Sep 17 00:00:00 2001 From: NerdEgghead Date: Wed, 24 Jul 2024 17:51:01 -0700 Subject: [PATCH] Automatically merge PR for .deployedprotoversion update after creating it. On branch versioning_workflow Changes to be committed: modified: .github/workflows/deploy.yml --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2a5689240c..5c56737f31 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,6 +6,8 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Install Go uses: actions/setup-go@v2 @@ -47,6 +49,7 @@ jobs: git commit -m "Auto-update .deployedprotoversion file due to API version increase" git push --set-upstream origin github-actions gh pr create --fill + gh pr merge --merge --delete-branch fi env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}