From bb4b5d6d38da4b12bfbf712b9bdc51c94c86371e Mon Sep 17 00:00:00 2001 From: kasium <15907922+kasium@users.noreply.github.com> Date: Fri, 6 Sep 2024 09:40:42 +0200 Subject: [PATCH] Fix CI --- .github/workflows/main.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eb2c728..866d8e2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ on: jobs: ci-approval: - if: ${{ github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]' }} + if: ${{ github.event_name != 'push' }} environment: testing runs-on: ubuntu-latest steps: @@ -17,8 +17,7 @@ jobs: ci-pre-commit: needs: [ci-approval] # run this job if it was approved by ci-approval or ci-approval was skipped and we are in a push event - # or dependabot created the PR - if: ${{ success() || ( needs.ci-approval.result == 'skipped' && ( github.event_name == 'push' || github.actor == 'dependabot[bot]' ) ) }} + if: ${{ success() || ( needs.ci-approval.result == 'skipped' && github.event_name == 'push' ) }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -34,12 +33,8 @@ jobs: run: pre-commit run --all ci-test: needs: [ci-approval] - # run this job if we have a PR and it was approved by ci-approval or ci-approval was skipped and dependabot created the PR - if: >- - ${{ - github.event_name == 'pull_request_target' && - ( success() || ( needs.ci-approval.result == 'skipped' && github.actor == 'dependabot[bot]' ) ) - }} + # run this job if we have a PR + if: ${{ github.event_name == 'pull_request_target' }} strategy: fail-fast: false matrix: