forked from open-telemetry/opentelemetry-java-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 869 Bytes
/
build-pull-request.yml
File metadata and controls
34 lines (28 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build Pull Request
on:
pull_request:
merge_group:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
common:
uses: ./.github/workflows/build-common.yml
with:
cache-read-only: true
# retry in merge queue to avoid unnecessary failures
max-test-retries: ${{ github.event_name == 'merge_group' && 5 || 0 }}
link-check:
uses: ./.github/workflows/reusable-link-check.yml
required-status-check:
if: always()
needs:
- common
- link-check # wait for link check to complete, but don't require it to pass for merging
runs-on: ubuntu-latest
steps:
# The reusable workflow success depends on all its jobs passing
- if: needs.common.result != 'success'
run: exit 1 # fail