Skip to content

Commit

Permalink
Ignore dependabot in testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Serious-senpai committed Oct 13, 2024
1 parent fe231cf commit d300693
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ permissions:
jobs:
checkout:
name: Checkout repository
if: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }}
if: |
(
github.event_name == 'push' &&
github.actor != 'dependabot[bot]'
) || (
github.event_name == 'workflow_run' &&
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.actor != 'dependabot[bot]'
)
runs-on: ubuntu-latest
outputs:
number: ${{ steps.pr-info-output.outputs.number }}
Expand Down

0 comments on commit d300693

Please sign in to comment.