Skip to content

Commit 45edb88

Browse files
committed
Define in another workflow so we can use pull_request_target
1 parent dd45c06 commit 45edb88

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow triggers the Buildkite pipeline for libc++.
2+
#
3+
# The Buildkite pipeline implements pre-commit CI checks on platforms
4+
# where the Github actions runner can't be used.
5+
6+
name: "[libc++] Trigger Buildkite pipeline"
7+
on:
8+
pull_request_target:
9+
paths:
10+
- 'libcxx/**'
11+
- 'libcxxabi/**'
12+
- 'libunwind/**'
13+
- 'runtimes/**'
14+
- 'cmake/**'
15+
schedule:
16+
# Run nightly at 08:00 UTC (aka 00:00 Pacific, aka 03:00 Eastern)
17+
- cron: '0 8 * * *'
18+
19+
permissions:
20+
contents: read # Default everything to read-only
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
24+
cancel-in-progress: true
25+
26+
jobs:
27+
trigger_buildkite:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Trigger Buildkite pipeline
31+
uses: buildkite/trigger-pipeline-action@f0dcd5ae74452a8d17d473227c9d212dcc1eb8f9 # v2.4.0
32+
with:
33+
buildkite_api_access_token: ${{ secrets.BUILDKITE_API_ACCESS_TOKEN }}
34+
pipeline: llvm-project/libcxx-ci
35+
branch: ${{ github.ref_name }}
36+
commit: ${{ github.sha }}
37+
message: "Triggered by GitHub Actions PR against ${{ github.ref_name }}"

0 commit comments

Comments
 (0)