99 - ' release/*'
1010 pull_request :
1111
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+ cancel-in-progress : true
15+
1216env :
1317 CORE_REPO_SHA : main
14- CONTRIB_REPO_SHA : main
18+ # Set the SHA to the branch name if the PR has a label 'prepare-release' or 'backport' otherwise, set it to 'main'
19+ # For PRs you can change the inner fallback ('main')
20+ # For pushes you change the outer fallback ('main')
21+ # The logic below is used during releases and depends on having an equivalent branch name in the contrib repo.
22+ CONTRIB_REPO_SHA : ${{ github.event_name == 'pull_request' && (
23+ contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
24+ contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
25+ ' main'
26+ ) || 'main' }}
1527 PIP_EXISTS_ACTION : w
1628
1729jobs :
1830
1931 lint-opentelemetry-api :
2032 name : opentelemetry-api
2133 runs-on : ubuntu-latest
34+ timeout-minutes : 30
2235 steps :
2336 - name : Checkout repo @ SHA - ${{ github.sha }}
2437 uses : actions/checkout@v4
3750 lint-opentelemetry-proto-protobuf5 :
3851 name : opentelemetry-proto-protobuf5
3952 runs-on : ubuntu-latest
53+ timeout-minutes : 30
4054 steps :
4155 - name : Checkout repo @ SHA - ${{ github.sha }}
4256 uses : actions/checkout@v4
5569 lint-opentelemetry-sdk :
5670 name : opentelemetry-sdk
5771 runs-on : ubuntu-latest
72+ timeout-minutes : 30
5873 steps :
5974 - name : Checkout repo @ SHA - ${{ github.sha }}
6075 uses : actions/checkout@v4
7388 lint-opentelemetry-semantic-conventions :
7489 name : opentelemetry-semantic-conventions
7590 runs-on : ubuntu-latest
91+ timeout-minutes : 30
7692 steps :
7793 - name : Checkout repo @ SHA - ${{ github.sha }}
7894 uses : actions/checkout@v4
91107 lint-opentelemetry-getting-started :
92108 name : opentelemetry-getting-started
93109 runs-on : ubuntu-latest
110+ timeout-minutes : 30
94111 steps :
95112 - name : Checkout repo @ SHA - ${{ github.sha }}
96113 uses : actions/checkout@v4
@@ -109,6 +126,7 @@ jobs:
109126 lint-opentelemetry-opentracing-shim :
110127 name : opentelemetry-opentracing-shim
111128 runs-on : ubuntu-latest
129+ timeout-minutes : 30
112130 steps :
113131 - name : Checkout repo @ SHA - ${{ github.sha }}
114132 uses : actions/checkout@v4
@@ -127,6 +145,7 @@ jobs:
127145 lint-opentelemetry-opencensus-shim :
128146 name : opentelemetry-opencensus-shim
129147 runs-on : ubuntu-latest
148+ timeout-minutes : 30
130149 steps :
131150 - name : Checkout repo @ SHA - ${{ github.sha }}
132151 uses : actions/checkout@v4
@@ -145,6 +164,7 @@ jobs:
145164 lint-opentelemetry-exporter-opencensus :
146165 name : opentelemetry-exporter-opencensus
147166 runs-on : ubuntu-latest
167+ timeout-minutes : 30
148168 steps :
149169 - name : Checkout repo @ SHA - ${{ github.sha }}
150170 uses : actions/checkout@v4
@@ -163,6 +183,7 @@ jobs:
163183 lint-opentelemetry-exporter-otlp-proto-common :
164184 name : opentelemetry-exporter-otlp-proto-common
165185 runs-on : ubuntu-latest
186+ timeout-minutes : 30
166187 steps :
167188 - name : Checkout repo @ SHA - ${{ github.sha }}
168189 uses : actions/checkout@v4
@@ -181,6 +202,7 @@ jobs:
181202 lint-opentelemetry-exporter-otlp-combined :
182203 name : opentelemetry-exporter-otlp-combined
183204 runs-on : ubuntu-latest
205+ timeout-minutes : 30
184206 steps :
185207 - name : Checkout repo @ SHA - ${{ github.sha }}
186208 uses : actions/checkout@v4
@@ -199,6 +221,7 @@ jobs:
199221 lint-opentelemetry-exporter-otlp-proto-grpc :
200222 name : opentelemetry-exporter-otlp-proto-grpc
201223 runs-on : ubuntu-latest
224+ timeout-minutes : 30
202225 steps :
203226 - name : Checkout repo @ SHA - ${{ github.sha }}
204227 uses : actions/checkout@v4
@@ -217,6 +240,7 @@ jobs:
217240 lint-opentelemetry-exporter-otlp-proto-http :
218241 name : opentelemetry-exporter-otlp-proto-http
219242 runs-on : ubuntu-latest
243+ timeout-minutes : 30
220244 steps :
221245 - name : Checkout repo @ SHA - ${{ github.sha }}
222246 uses : actions/checkout@v4
@@ -235,6 +259,7 @@ jobs:
235259 lint-opentelemetry-exporter-prometheus :
236260 name : opentelemetry-exporter-prometheus
237261 runs-on : ubuntu-latest
262+ timeout-minutes : 30
238263 steps :
239264 - name : Checkout repo @ SHA - ${{ github.sha }}
240265 uses : actions/checkout@v4
@@ -253,6 +278,7 @@ jobs:
253278 lint-opentelemetry-exporter-zipkin-combined :
254279 name : opentelemetry-exporter-zipkin-combined
255280 runs-on : ubuntu-latest
281+ timeout-minutes : 30
256282 steps :
257283 - name : Checkout repo @ SHA - ${{ github.sha }}
258284 uses : actions/checkout@v4
@@ -271,6 +297,7 @@ jobs:
271297 lint-opentelemetry-exporter-zipkin-proto-http :
272298 name : opentelemetry-exporter-zipkin-proto-http
273299 runs-on : ubuntu-latest
300+ timeout-minutes : 30
274301 steps :
275302 - name : Checkout repo @ SHA - ${{ github.sha }}
276303 uses : actions/checkout@v4
@@ -289,6 +316,7 @@ jobs:
289316 lint-opentelemetry-exporter-zipkin-json :
290317 name : opentelemetry-exporter-zipkin-json
291318 runs-on : ubuntu-latest
319+ timeout-minutes : 30
292320 steps :
293321 - name : Checkout repo @ SHA - ${{ github.sha }}
294322 uses : actions/checkout@v4
@@ -307,6 +335,7 @@ jobs:
307335 lint-opentelemetry-propagator-b3 :
308336 name : opentelemetry-propagator-b3
309337 runs-on : ubuntu-latest
338+ timeout-minutes : 30
310339 steps :
311340 - name : Checkout repo @ SHA - ${{ github.sha }}
312341 uses : actions/checkout@v4
@@ -325,6 +354,7 @@ jobs:
325354 lint-opentelemetry-propagator-jaeger :
326355 name : opentelemetry-propagator-jaeger
327356 runs-on : ubuntu-latest
357+ timeout-minutes : 30
328358 steps :
329359 - name : Checkout repo @ SHA - ${{ github.sha }}
330360 uses : actions/checkout@v4
@@ -343,6 +373,7 @@ jobs:
343373 lint-opentelemetry-test-utils :
344374 name : opentelemetry-test-utils
345375 runs-on : ubuntu-latest
376+ timeout-minutes : 30
346377 steps :
347378 - name : Checkout repo @ SHA - ${{ github.sha }}
348379 uses : actions/checkout@v4
0 commit comments