Skip to content

Commit

Permalink
Don't run reviewer lottery from bots (#397)
Browse files Browse the repository at this point in the history
* Don't run reviewer lottery from bots

* Add own context testing workflow

(cherry picked from commit 159e89b)

# Conflicts:
#	.github/workflows/reviewer_lottery.yml
  • Loading branch information
christophfroehlich authored and mergify[bot] committed Dec 24, 2023
1 parent f61df4b commit 42c7f40
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/context_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Context testing
on:
pull_request:

jobs:
dump_contexts_to_log:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
12 changes: 12 additions & 0 deletions .github/workflows/reviewer_lottery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,20 @@ on:
jobs:
test:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'mergify[bot]' }}
steps:
<<<<<<< HEAD
- uses: actions/checkout@v3
- uses: uesteibar/reviewer-lottery@v2
=======
- 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
>>>>>>> 159e89b (Don't run reviewer lottery from bots (#397))
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 42c7f40

Please sign in to comment.