Skip to content

Commit

Permalink
ci: skip entire autoland job for non-bot users
Browse files Browse the repository at this point in the history
Fixes #381
  • Loading branch information
mmcloughlin committed Mar 6, 2023
1 parent 759be3d commit 40deebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 40deebf

Please sign in to comment.