From ce5bd9e0917f0cb23261e30a76e27f9ea86948d4 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Sun, 24 Dec 2023 08:45:07 +0000 Subject: [PATCH] Don't run reviewer lottery from bots --- .github/workflows/reviewer_lottery.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/reviewer_lottery.yml b/.github/workflows/reviewer_lottery.yml index 2edbc9b59..5cd52ff8f 100644 --- a/.github/workflows/reviewer_lottery.yml +++ b/.github/workflows/reviewer_lottery.yml @@ -6,7 +6,14 @@ on: jobs: test: runs-on: ubuntu-latest + if: github.actor != 'dependabot[bot]' && github.actor != 'mergify[bot]' steps: + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: | + echo "$GITHUB_CONTEXT" + echo "The GitHub Actor's username is: $GITHUB_ACTOR" - uses: actions/checkout@v4 - uses: uesteibar/reviewer-lottery@v3 with: