Skip to content

Commit 1a50ad9

Browse files
committed
feat(CI): Add CI conditions
1 parent 1a1c7bb commit 1a50ad9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/Format.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Format
1+
name: format
22

33
on:
44
push:
@@ -7,6 +7,10 @@ on:
77

88
jobs:
99
swift_format:
10+
if: |
11+
!startsWith(github.event.head_commit.message, '[ci skip]') &&
12+
!startsWith(github.event.head_commit.message, '[ci skip format]') &&
13+
!startsWith(github.event.head_commit.message, '[ci skip swift_format]')
1014
name: swift-format
1115
runs-on: macos-12
1216
steps:

.github/workflows/Test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: test
22

33
on:
44
push:
@@ -8,6 +8,10 @@ on:
88

99
jobs:
1010
test_macos:
11+
if: |
12+
!startsWith(github.event.head_commit.message, '[ci skip]') &&
13+
!startsWith(github.event.head_commit.message, '[ci skip test]')
14+
!startsWith(github.event.head_commit.message, '[ci skip test_macos]')
1115
runs-on: macOS-12
1216
timeout-minutes: 30
1317
steps:

0 commit comments

Comments
 (0)