Skip to content

Commit c0a7826

Browse files
committed
ci: only use workflow from the given minor branch
When we create a new 3.<minor>.x branch, we need to use image tags 3.<minor>.x-snapshot instead of latest-snapshot. We should modify the workflow on the new branch to use the correct tags, instead of executing the workflow from main, and accidentally overwriting the latest-snapshot tag.
1 parent 0b305fc commit c0a7826

6 files changed

+10
-13
lines changed

.github/workflows/integration-tests.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ on:
77
- 'README*'
88
- 'docs/**'
99
- '.github/workflows/**'
10-
branches: [main, '[1-9].[1-9].x']
10+
branches: [ main ]
1111
pull_request:
1212
paths-ignore:
1313
- '.gitignore'
1414
- 'LICENSE'
1515
- 'README*'
1616
- 'docs/**'
17-
branches: [main]
17+
branches: [ main ]
1818

1919
concurrency:
2020
# Only run once for latest commit per ref and cancel other (previous) runs.

.github/workflows/operator.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ on:
77
- 'README*'
88
- 'docs/**'
99
- '.github/workflows/**'
10-
branches: [main]
10+
branches: [ main ]
1111
pull_request:
1212
paths-ignore:
1313
- '.gitignore'
1414
- 'LICENSE'
1515
- 'README*'
1616
- 'docs/**'
17-
branches: [main]
17+
branches: [ main ]
1818

1919
concurrency:
2020
# Only run once for latest commit per ref and cancel other (previous) runs.

.github/workflows/publish-docs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
paths:
66
- 'docs/**'
7-
branches: ['main', '[1-9].[0-9].x']
7+
branches: [ main ]
88

99
jobs:
1010
publish-docs:

.github/workflows/qodana.yaml

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@ on:
66
- LICENSE
77
- README*
88
- docs/**
9-
branches:
10-
- main
9+
branches: [ main ]
1110
pull_request:
1211
paths-ignore:
1312
- .gitignore
1413
- LICENSE
1514
- README*
1615
- docs/**
17-
branches:
18-
- main
16+
branches: [ main ]
1917

2018
concurrency:
2119
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/validate-openapi.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Validate OpenAPI schema with Spectral
22
on:
33
workflow_call: { }
44
pull_request:
5-
branches:
6-
- main
5+
branches: [ main ]
76
paths:
87
- common/src/main/resources/META-INF/openapi.json
98

.github/workflows/verify.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ on:
77
- 'README*'
88
- 'docs/**'
99
- '.github/workflows/**'
10-
branches: [ main, '3.[0-9].x' ]
10+
branches: [ main ]
1111
pull_request:
1212
paths-ignore:
1313
- '.gitignore'
1414
- 'LICENSE'
1515
- 'README*'
1616
- 'docs/**'
17-
branches: [ main, '3.[0-9].x' ]
17+
branches: [ main ]
1818

1919
concurrency:
2020
# Only run once for latest commit per ref and cancel other (previous) runs.

0 commit comments

Comments
 (0)