Skip to content

Commit

Permalink
[CI] Use contains() in if rule (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored Dec 24, 2023
1 parent 159e89b commit 91d9281
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/reviewer_lottery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ 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"
reviewer-lottery:
runs-on: ubuntu-latest
if: ${{ ! contains(fromJSON('["dependabot[bot]", "mergify[bot]"]'), github.actor) }}
steps:
- name: Dump GitHub context
env:
Expand Down

0 comments on commit 91d9281

Please sign in to comment.