Skip to content

Commit 0f97ab1

Browse files
committed
GHA: Attempt to exclude main branch
...
1 parent 7994336 commit 0f97ab1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/swift.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
linux:
1111
runs-on: ubuntu-latest
12+
if: github.ref != 'refs/heads/main'
1213
strategy:
1314
fail-fast: false
1415
matrix:
@@ -27,6 +28,7 @@ jobs:
2728
run: swift build -c release
2829
nextstep:
2930
runs-on: macos-latest
31+
if: github.ref != 'refs/heads/main'
3032
steps:
3133
- name: Select latest available Xcode
3234
uses: maxim-lobanov/[email protected]

0 commit comments

Comments
 (0)