-
Notifications
You must be signed in to change notification settings - Fork 145
49 lines (42 loc) · 1.38 KB
/
bench-dispatch.yml
File metadata and controls
49 lines (42 loc) · 1.38 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
46
47
48
49
# Dispatches benchmark workflows when benchmark labels are added to pull requests.
# This is a separate workflow so that non-benchmark label events don't create
# phantom check suites that obscure in-progress benchmark runs on the PR.
name: Benchmark Dispatch
on:
pull_request:
types: [labeled]
branches: ["develop"]
permissions:
actions: write
contents: read
pull-requests: write # for label removal and PR comments
id-token: write # enables AWS-GitHub OIDC
jobs:
remove-bench-label:
runs-on: ubuntu-latest
timeout-minutes: 2
if: github.event.label.name == 'action/benchmark'
steps:
- uses: actions-ecosystem/action-remove-labels@v1
if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex'
with:
labels: action/benchmark
fail_on_error: true
bench:
needs: remove-bench-label
uses: ./.github/workflows/bench-pr.yml
secrets: inherit
remove-sql-label:
runs-on: ubuntu-latest
timeout-minutes: 2
if: github.event.label.name == 'action/benchmark-sql'
steps:
- uses: actions-ecosystem/action-remove-labels@v1
if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex'
with:
labels: action/benchmark-sql
fail_on_error: true
sql-bench:
needs: remove-sql-label
uses: ./.github/workflows/sql-pr.yml
secrets: inherit