Skip to content

Register Workflow Run with AndroidX #245

Register Workflow Run with AndroidX

Register Workflow Run with AndroidX #245

name: Register Workflow Run with AndroidX
on:
workflow_run:
workflows: ["AndroidX Presubmits"]
types: [requested]
jobs:
ping_androidx_dev:
if: ${{ !github.event.repository.fork }}
runs-on: ubuntu-latest
name: "Start webhook"
steps:
- name: "Ping AndroidX hook"
uses: androidx/github-workflow-webhook-action@main
with:
url: 'https://androidx.dev/github/androidX/presubmit/hook'
secret: ${{ secrets.ANDROIDX_PRESUBMIT_HOOK_SECRET }}
payload: '{ "platform": "all", "token": "${{ secrets.GITHUB_TOKEN }}", "state": "started", "src" : "workflow_run"}'