-
Notifications
You must be signed in to change notification settings - Fork 339
35 lines (32 loc) · 1.08 KB
/
internal-build.yml
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
35
name: Run internal build
on:
pull_request:
paths-ignore:
- 'doc/**'
concurrency:
# Cancel existing builds for the same PR.
# Otherwise, all other builds will be allowed to run through.
group: internal-build.yml-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
internal-build:
if: "${{! github.event.pull_request.head.repo.fork}}" # Don't run on forks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: false
- name: Run internal build
env:
CI_URL: ${{ secrets.CI_URL }}
CI_CLIENT_ID: ${{ secrets.CI_CF_ACCESS_CLIENT_ID }}
CI_CLIENT_SECRET: ${{ secrets.CI_CF_ACCESS_CLIENT_SECRET }}
run: |
python3 -u ./tools/cross/internal_build.py \
${{github.event.pull_request.number}} \
${{github.event.pull_request.head.sha}} \
${{github.run_attempt}} \
"${{github.event.pull_request.head.ref}}" \
$CI_URL \
$CI_CLIENT_ID \
$CI_CLIENT_SECRET