|
15 | 15 | branches: |
16 | 16 | - develop |
17 | 17 |
|
18 | | - # pull_request_target runs repo-owned checks (e.g., Danger comments) on the base ref with the base repo token; |
19 | | - # never executes PR code. |
20 | | - pull_request_target: |
21 | | - branches: |
22 | | - - develop |
23 | 18 |
|
24 | 19 | concurrency: |
25 | 20 | group: ${{format('{0}:{1}', github.repository, github.ref)}} |
26 | 21 | cancel-in-progress: true |
27 | 22 |
|
28 | 23 | jobs: |
29 | 24 | cpp-matrix: |
30 | | - if: github.event_name != 'pull_request_target' |
31 | 25 | runs-on: ubuntu-24.04 |
32 | 26 | container: |
33 | 27 | image: ubuntu:24.04 |
@@ -133,7 +127,6 @@ jobs: |
133 | 127 | node .github/releases-matrix.js |
134 | 128 |
|
135 | 129 | build: |
136 | | - if: github.event_name != 'pull_request_target' |
137 | 130 | needs: cpp-matrix |
138 | 131 |
|
139 | 132 | strategy: |
@@ -1319,33 +1312,3 @@ jobs: |
1319 | 1312 | llvm_dir="/var/www/mrdox.com/llvm+clang" |
1320 | 1313 | chmod 755 ${{ matrix.llvm-archive-filename }} |
1321 | 1314 | scp -o StrictHostKeyChecking=no $(pwd)/${{ matrix.llvm-archive-filename }} ubuntu@dev-websites.cpp.al:$llvm_dir/ |
1322 | | -
|
1323 | | - repo-checks: |
1324 | | - name: Repo checks |
1325 | | - # Run under pull_request_target so we can use the base-repo token to comment on forked PRs |
1326 | | - # without executing forked code in this job. Declared after the matrix job so the matrix stays first in the UI. |
1327 | | - if: github.event_name == 'pull_request_target' |
1328 | | - runs-on: ubuntu-24.04 |
1329 | | - permissions: |
1330 | | - contents: read |
1331 | | - pull-requests: write |
1332 | | - issues: write |
1333 | | - statuses: write |
1334 | | - steps: |
1335 | | - - name: Checkout base revision |
1336 | | - uses: actions/checkout@v4 |
1337 | | - with: |
1338 | | - fetch-depth: 0 |
1339 | | - |
1340 | | - - name: Setup Node.js |
1341 | | - uses: actions/setup-node@v4 |
1342 | | - with: |
1343 | | - node-version: 20 |
1344 | | - |
1345 | | - - name: Install repo-check tools |
1346 | | - run: npm --prefix util/danger ci |
1347 | | - |
1348 | | - - name: Repo checks (Danger) |
1349 | | - env: |
1350 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
1351 | | - run: npx --prefix util/danger danger ci --dangerfile util/danger/dangerfile.ts |
0 commit comments