Skip to content

Commit 72335c6

Browse files
committed
Reduce redundant action runs
Signed-off-by: Appu Goundan <[email protected]>
1 parent c66885c commit 72335c6

File tree

5 files changed

+21
-26
lines changed

5 files changed

+21
-26
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ name: Test
1111

1212
on:
1313
push:
14-
branches:
15-
- '*'
16-
pull_request:
17-
branches:
18-
- main
19-
workflow_call: # allow this workflow to be called by other workflows
14+
branches: [main]
15+
pull_request: {}
16+
workflow_call: {} # allow this workflow to be called by other workflows
2017

2118
concurrency:
2219
# On master/release, we don't want any jobs cancelled

.github/workflows/conformance.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: Conformance Tests
22

33
on:
4-
push:
5-
branches:
6-
- '**'
7-
pull_request:
4+
push:
5+
branches: [main]
6+
pull_request: {}
87
# TODO: add cron
98

109
jobs:

.github/workflows/examples.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ name: Examples
22

33
on:
44
push:
5-
branches:
6-
- '*'
7-
pull_request:
8-
branches:
9-
- main
5+
branches: [main]
6+
pull_request: {}
107

118
jobs:
129
examples-release:
@@ -22,13 +19,13 @@ jobs:
2219

2320
permissions:
2421
id-token: write
25-
22+
2623
steps:
2724
- name: Enable long paths in Git
2825
if: runner.os == 'Windows'
2926
run: git config --system core.longpaths true
3027
shell: bash
31-
28+
3229
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3330
with:
3431
persist-credentials: false
@@ -46,13 +43,13 @@ jobs:
4643
working-directory: examples/hello-world
4744
shell: bash
4845
run: ./test.sh
49-
46+
5047
examples-dev:
5148
strategy:
5249
fail-fast: false
5350
matrix:
5451
os: [ubuntu-latest, macos-latest, windows-latest]
55-
52+
5653
name: Build and run dev examples on ${{ matrix.os }}
5754
runs-on: ${{ matrix.os }}
5855
concurrency:
@@ -67,7 +64,7 @@ jobs:
6764
if: runner.os == 'Windows'
6865
run: git config --system core.longpaths true
6966
shell: bash
70-
67+
7168
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7269
with:
7370
persist-credentials: false
@@ -96,4 +93,4 @@ jobs:
9693
shell: bash
9794
env:
9895
VERSION: ${{ steps.dev_version.outputs.version }}
99-
run: ./test.sh -Dsigstore.version=${VERSION}
96+
run: ./test.sh -Dsigstore.version=${VERSION}

.github/workflows/gradle-wrapper-validation.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: "Validate Gradle Wrapper"
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request: {}
36

47
jobs:
58
validation:

.github/workflows/tuf-conformance.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ name: TUF Conformance Tests
22

33
on:
44
push:
5-
branches:
6-
- '**'
7-
pull_request:
8-
workflow_dispatch:
5+
branches: [main]
6+
pull_request: {}
7+
workflow_dispatch: {}
98
# TODO: add cron
109

1110
jobs:

0 commit comments

Comments
 (0)