Skip to content

Commit c78b923

Browse files
Don't run build and test if only docs changed (#24530)
Co-authored-by: techknowlogick <[email protected]>
1 parent 98c4089 commit c78b923

11 files changed

+101
-5
lines changed

.github/workflows/cron-licenses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66

77
jobs:
88
cron-licenses:
9-
if: github.repository == "go-gitea/gitea"
109
runs-on: ubuntu-latest
10+
if: github.repository == 'go-gitea/gitea'
1111
steps:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-go@v3

.github/workflows/cron-lock.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ concurrency:
1515
jobs:
1616
action:
1717
runs-on: ubuntu-latest
18+
if: github.repository == 'go-gitea/gitea'
1819
steps:
1920
- uses: dessant/lock-threads@v4
2021
with:

.github/workflows/cron-translations.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
crowdin-pull:
99
runs-on: ubuntu-latest
10+
if: github.repository == 'go-gitea/gitea'
1011
steps:
1112
- uses: actions/checkout@v3
1213
- name: download from crowdin
@@ -31,6 +32,7 @@ jobs:
3132
ssh_key: ${{ secrets.DEPLOY_KEY }}
3233
crowdin-push:
3334
runs-on: ubuntu-latest
35+
if: github.repository == 'go-gitea/gitea'
3436
steps:
3537
- uses: actions/checkout@v3
3638
- name: push translations to crowdin
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: compliance
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "docs/**"
7+
- "*.md"
8+
9+
jobs:
10+
compliance-docs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- run: echo "No build required"

.github/workflows/pull-compliance.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: compliance
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- "docs/**"
7+
- "*.md"
48

59
concurrency:
610
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: db-tests
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "docs/**"
7+
- "*.md"
8+
9+
jobs:
10+
test-pgsql:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- run: echo "No build required"
14+
15+
test-sqlite:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- run: echo "No build required"
19+
20+
test-unit:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- run: echo "No build required"
24+
25+
test-mysql5:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- run: echo "No build required"
29+
30+
test-mysql8:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- run: echo "No build required"
34+
35+
test-mssql:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- run: echo "No build required"

.github/workflows/pull-db-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: db-tests
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- "docs/**"
7+
- "*.md"
48

59
concurrency:
610
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: docker-dryrun
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "docs/**"
7+
- "*.md"
8+
9+
jobs:
10+
docker-dryrun:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- run: echo "No build required"

.github/workflows/pull-docker-dryrun.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: docker-dryrun
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- "docs/**"
7+
- "*.md"
48

59
concurrency:
610
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: e2e-tests
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "docs/**"
7+
- "*.md"
8+
9+
jobs:
10+
test-e2e:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- run: echo "No build required"

.github/workflows/pull-e2e-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: e2e-tests
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- "docs/**"
7+
- "*.md"
48

59
concurrency:
610
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

0 commit comments

Comments
 (0)