-
Notifications
You must be signed in to change notification settings - Fork 124
45 lines (40 loc) · 1.59 KB
/
on_pull_request_label.yaml
File metadata and controls
45 lines (40 loc) · 1.59 KB
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
36
37
38
39
40
41
42
43
44
45
name: CI (PR label)
on:
# Also trigger in case the PR labels change so that we can re-check the execution condition
pull_request:
types: [labeled, synchronize, reopened]
concurrency:
group: release
cancel-in-progress: false
jobs:
wait_for_checks:
name: Wait for code checks to pass
runs-on: ubuntu-latest
steps:
- name: Wait for existing checks or skip if none
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.event.pull_request.head.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
check-regexp: (Code checks)
wait-interval: 10
running-workflow-name: 'Wait for code checks to pass'
allowed-conclusions: success,neutral,skipped
continue-on-error: false
push_pkg_pr_new:
needs: [ wait_for_checks ]
# Run ONLY when PR has the "beta" label
if: contains(github.event.pull_request.labels.*.name, 'beta')
name: Push to pkg.pr.new
uses: ./.github/workflows/_publish_to_pkg_pr_new.yaml
with:
ref: ${{ github.event.pull_request.head.ref }}
evaluations:
needs: [ wait_for_checks ]
name: MCP tool calling evaluations
# Run when PR is labeled with 'validated'
if: github.event.action == 'labeled' && github.event.label.name == 'validated'
uses: ./.github/workflows/_evaluations.yaml
secrets: inherit
with:
pr_number: ${{ github.event.pull_request.number }}