-
Notifications
You must be signed in to change notification settings - Fork 54
28 lines (27 loc) · 1 KB
/
bench_trigger.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
name: Trigger benchmarks
on:
push:
branches:
- main
pull_request_target:
types: [opened, synchronize, reopened, labeled]
jobs:
trigger-benchmark:
name: Trigger Benchmark
runs-on: ubuntu-latest
steps:
- name: Trigger benchmarks (PR)
id: setup_pr
if: contains(github.event.pull_request.labels.*.name, 'benchmark PR')
run: |
curl -s -X POST --fail -F token=${{ secrets.BENCH_PIPE_TRIGGER }} -F "ref=main" -F "variables[PR]=${{ github.event.pull_request.number }}" https://codebase.helmholtz.cloud/api/v4/projects/7930/trigger/pipeline -o /dev/null
- name: Trigger benchmarks (Push main)
id: setup_push
if: ${{ github.event_name == 'push' }}
run: |
curl -s -X POST \
--fail \
-F "token=${{ secrets.BENCH_PIPE_TRIGGER }}" \
-F "ref=main" \
-F "variables[SHA]=$GITHUB_SHA" \
https://codebase.helmholtz.cloud/api/v4/projects/7930/trigger/pipeline -o /dev/null