From 40deebf15b51ec9b2fbc1c9fd7bf7bf7f692703f Mon Sep 17 00:00:00 2001 From: Michael McLoughlin Date: Sun, 5 Mar 2023 20:23:00 -0800 Subject: [PATCH] ci: skip entire autoland job for non-bot users Fixes #381 --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index bf98e0ee..cffb3889 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -5,6 +5,7 @@ on: pull_request: jobs: automerge: + if: github.actor == 'cadobot[bot]' && !github.event.pull_request.draft runs-on: ubuntu-latest steps: - name: Generate Bot Token @@ -14,7 +15,6 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Automerge Bot Pull Requests - if: github.actor == 'cadobot[bot]' && !github.event.pull_request.draft run: gh pr merge --auto --squash "${{ github.event.pull_request.html_url }}" env: GITHUB_TOKEN: ${{ steps.bot.outputs.token }}