Skip to content

Commit eb94a77

Browse files
authored
GitHub: Update CI (#14709)
1 parent 3a3ca3c commit eb94a77

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# Licensed under the MIT License. See the LICENSE.
33

44
# Abstract:
5-
# - This CI is executed when a new commit is created on the main branch or
6-
# on a PR whose head branch is the main branch.
7-
# - However, the CI will not be executed if files not directly related to
8-
# source code maintenance are updated.
5+
# This CI is executed when a new commit is created on the main branch or
6+
# on a PR whose head branch is the main branch.
7+
# However, the CI will not be executed if files not directly related to
8+
# source code maintenance are updated.
99

1010
name: Files CI
1111

@@ -14,11 +14,15 @@ on:
1414
branches:
1515
- main
1616
paths-ignore:
17-
- 'specs/**'
17+
- 'assets/**'
18+
- 'builds/**'
19+
- 'docs/**'
1820
- '*.md'
1921
pull_request:
2022
paths-ignore:
21-
- 'specs/**'
23+
- 'assets/**'
24+
- 'builds/**'
25+
- 'docs/**'
2226
- '*.md'
2327

2428
run-name: ${{ github.event_name == 'pull_request' && 'Files PR Validation' || 'Files CI Validation' }}
@@ -42,6 +46,9 @@ env:
4246
jobs:
4347

4448
check-formatting:
49+
50+
if: github.repository_owner == 'files-community'
51+
4552
runs-on: ubuntu-latest
4653
defaults:
4754
run:
@@ -76,6 +83,9 @@ jobs:
7683
run: exit 1
7784

7885
build:
86+
87+
if: github.repository_owner == 'files-community'
88+
7989
runs-on: windows-latest
8090
strategy:
8191
fail-fast: false
@@ -174,7 +184,9 @@ jobs:
174184
path: ${{ env.ARTIFACTS_STAGING_DIR }}
175185

176186
test:
177-
if: always()
187+
188+
if: github.repository_owner == 'files-community' && always()
189+
178190
needs: [build]
179191
runs-on: windows-latest
180192
strategy:

0 commit comments

Comments
 (0)