Register Workflow Run with AndroidX #269
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: 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"}' |