Skip to content

Commit

Permalink
CI: fix job skip conditions.
Browse files Browse the repository at this point in the history
Hopefully.
  • Loading branch information
whitequark committed Oct 4, 2023
1 parent ed88757 commit 0192561
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 0192561

Please sign in to comment.