From d79d84b5f326c655115f9cffca9be18476335fa3 Mon Sep 17 00:00:00 2001 From: tonyspumoni <94409037+tonyspumoni@users.noreply.github.com> Date: Fri, 18 Nov 2022 19:26:47 -0700 Subject: [PATCH] try create PR & autoapprove action (#291) --- .github/workflows/AutoApprove.yml | 14 ++++++++++++++ .github/workflows/VerifyBuild.yml | 9 ++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/AutoApprove.yml diff --git a/.github/workflows/AutoApprove.yml b/.github/workflows/AutoApprove.yml new file mode 100644 index 00000000..5a89428b --- /dev/null +++ b/.github/workflows/AutoApprove.yml @@ -0,0 +1,14 @@ +name: Auto approve + +on: pull_request_target + +jobs: + auto-approve: + runs-on: ubuntu-latest + permissions: + pull-requests: write + if: github.actor == 'github-actions[bot]' + steps: + - uses: hmarr/auto-approve-action@v3 + with: + github-token: ${{ secrets.AUTO_APPROVE_PAT }} diff --git a/.github/workflows/VerifyBuild.yml b/.github/workflows/VerifyBuild.yml index 4065ae4b..3db1e9a0 100644 --- a/.github/workflows/VerifyBuild.yml +++ b/.github/workflows/VerifyBuild.yml @@ -54,12 +54,11 @@ jobs: - name: Update Score run: ./update-score.sh - - name: Commit Score Update - uses: test-room-7/action-update-file@v1 + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 with: - file-path: README.md - commit-msg: Update score - github-token: ${{ secrets.GITHUB_TOKEN }} + add-paths: README.md + commit-message: "Update score" - name: Clean Build run: make clean