Trigger deploys in drydock #7
This file contains hidden or 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 deploys in drydock | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Workflow in Another Repository | |
| env: | |
| GH_TOKEN: ${{ secrets.DRYDOCK_PAT }} | |
| run: | | |
| # GitHub CLI api | |
| # https://cli.github.com/manual/gh_api | |
| gh api \ | |
| --method POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "X-GitHub-Api-Version: 2022-11-28" \ | |
| /repos/brownplt/pyret-drydock/dispatches \ | |
| -f 'event_type=nonsense' -F "client_payload[unit]=false" -F "client_payload[integration]=true" |