Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): add dispatch-sim-evaluation-tools.yaml #697

Draft
wants to merge 19 commits into
base: tier4/main
Choose a base branch
from
Draft
Changes from 13 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/dispatch-sim-evaluation-tools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: dispatch-sim-evaluation-tools
on:
pull_request:
types: [labeled]

jobs:
make_dispatch_event:
runs-on: ubuntu-latest
if: github.event.label.name == 'execute-autoware-evaluator'
steps:
- name: generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
HansRobo marked this conversation as resolved.
Show resolved Hide resolved
- name: trigger
env:
pull_request_info: ${{ toJSON(github.event.pull_request) }}
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ steps.generate-token.outputs.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/tier4/sim_evaluation_tools_test/dispatches" \
-d '{"event_type":"pull_request_notification","client_payload":{"config":"autoware","pr":"${pull_request_info}" }}'