From d300693a54485c94a8fa60deb30b3ee3172af5a2 Mon Sep 17 00:00:00 2001 From: Serious-senpai <57554044+Serious-senpai@users.noreply.github.com> Date: Sun, 13 Oct 2024 19:16:58 +0700 Subject: [PATCH] Ignore dependabot in testing workflow --- .github/workflows/tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5c4fa22..68c3eff 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }}