feed conditional restrictions as key+value pair as suggested in #2477 #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger Benchmarks | |
on: push | |
jobs: | |
trigger_measurement: | |
if: github.repository_owner == 'graphhopper' | |
runs-on: ubuntu-22.04 | |
environment: benchmarks | |
steps: | |
- name: trigger | |
run: | | |
curl -X POST -H "Authorization: token ${{ secrets.BENCHMARKS_TOKEN }}" \ | |
-H "Accept: application/vnd.github+json" \ | |
"https://api.github.com/repos/${{ secrets.BENCHMARKS_REPO }}/dispatches" \ | |
-d '{"event_type":"measurement_core","client_payload":{"core_commit": "'$GITHUB_SHA'", "core_branch": "${{ github.ref_name }}" }}' |