Skip to content

Commit 2491228

Browse files
committed
build: limit github workflow triggers
1 parent 5b73c80 commit 2491228

15 files changed

+150
-42
lines changed

.github/workflows/alpine.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: Alpine Linux
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
push:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- '**.md'
14+
- 'docs/**'
415

516
jobs:
617
ubuntu-build:

.github/workflows/lint_and_format_check.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: Lint and Format Check (Ubuntu Latest)
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
push:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- '**.md'
14+
- 'docs/**'
415

516
permissions:
617
contents: read
@@ -26,4 +37,4 @@ jobs:
2637
- uses: chartboost/ruff-action@v1
2738
name: Lint with Ruff
2839
with:
29-
version: 0.0.261
40+
version: 0.0.263

.github/workflows/release-script-tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,20 @@ name: Release Script Tests
33
on:
44
# workflow_call is used to indicate that a workflow can be called by another workflow.
55
workflow_call:
6-
push:
7-
branches:
8-
- "*"
96
pull_request:
7+
types: [opened, synchronize, reopened, ready_for_review]
8+
paths-ignore:
9+
- '**.md'
10+
- 'docs/**'
11+
push:
1012
branches:
11-
- "*"
13+
- main
14+
paths-ignore:
15+
- '**.md'
16+
- 'docs/**'
1217

1318
permissions:
14-
contents: write
19+
contents: read
1520

1621
jobs:
1722
release-script-test:

.github/workflows/release_create.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Release Create Workflow
33
on:
44
pull_request:
55
types: [closed]
6+
branches:
7+
- "release/v**"
68

79
permissions:
810
contents: write

.github/workflows/scorecard.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ on:
1010
# To guarantee Maintained check is occasionally updated. See
1111
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1212
schedule:
13-
- cron: '16 21 * * 1'
14-
push:
15-
branches:
16-
- main
13+
- cron: '0 0 * * 1'
1714

1815
# Declare default permissions as read only.
1916
permissions: read-all

.github/workflows/ubuntu-release.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
name: Ubuntu 22.04 (Release build)
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
push:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- '**.md'
14+
- 'docs/**'
415

516
permissions:
617
contents: read
718

819
jobs:
920
ubuntu-release-build:
10-
if: >-
11-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
12-
! contains(toJSON(github.event.commits.*.message), '[skip github]')
1321
runs-on: ubuntu-22.04
1422
strategy:
1523
matrix:

.github/workflows/ubuntu-s390x.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
name: Ubuntu s390x (GCC 11)
22

33
on:
4-
push:
5-
branches:
6-
- main
74
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
push:
810
branches:
911
- main
12+
paths-ignore:
13+
- '**.md'
14+
- 'docs/**'
1015

1116
permissions:
1217
contents: read

.github/workflows/ubuntu-sanitized.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: Ubuntu 22.04 (GCC 12 SANITIZED)
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
push:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- '**.md'
14+
- 'docs/**'
415

516
permissions:
617
contents: read

.github/workflows/ubuntu-undef.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: Ubuntu 22.04 (GCC 12 SANITIZED)
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
push:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- '**.md'
14+
- 'docs/**'
415

516
permissions:
617
contents: read

.github/workflows/ubuntu.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: Ubuntu 22.04
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
push:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- '**.md'
14+
- 'docs/**'
415

516
permissions:
617
contents: read

0 commit comments

Comments
 (0)