From 0192561adc344df958790ad0720414f7b161558e Mon Sep 17 00:00:00 2001 From: Catherine Date: Wed, 4 Oct 2023 20:37:01 +0000 Subject: [PATCH] CI: fix job skip conditions. Hopefully. --- .github/workflows/main.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ae50dfa06..5d604bb02 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ name: CI jobs: test-software: - if: (github.event.ref == 'refs/heads/main' || github.event_name == 'pull_request') || github.repository != 'GlasgowEmbedded/glasgow' + if: ${{ !(github.event_name == 'push' && github.repository == 'GlasgowEmbedded/glasgow' && github.event.ref != 'refs/heads/main') }} runs-on: ubuntu-latest strategy: matrix: @@ -60,7 +60,7 @@ jobs: pdm run test build-firmware: - if: (github.event.ref == 'refs/heads/main' || github.event_name == 'pull_request') || github.repository != 'GlasgowEmbedded/glasgow' + if: ${{ !(github.event_name == 'push' && github.repository == 'GlasgowEmbedded/glasgow' && github.event.ref != 'refs/heads/main') }} runs-on: ubuntu-latest steps: - name: Check out source code @@ -79,7 +79,7 @@ jobs: run: make build-manual: - if: (github.event.ref == 'refs/heads/main' || github.event_name == 'pull_request') || github.repository != 'GlasgowEmbedded/glasgow' + if: ${{ !(github.event_name == 'push' && github.repository == 'GlasgowEmbedded/glasgow' && github.event.ref != 'refs/heads/main') }} runs-on: ubuntu-latest defaults: run: @@ -106,7 +106,6 @@ jobs: path: docs/manual/out required: # group all required workflows into one to avoid reconfiguring this in Actions settings - if: (github.event.ref == 'refs/heads/main' || github.event_name == 'pull_request') || github.repository != 'GlasgowEmbedded/glasgow' needs: - test-software - build-firmware