Trigger Python Client Generation #109
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 Python Client Generation | |
on: | |
workflow_run: | |
workflows: [Spec Main] | |
types: | |
- completed | |
jobs: | |
build: | |
name: Trigger digitalocean-client-python Workflow | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set outputs | |
id: vars | |
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | |
- name: Check outputs | |
run: echo ${{ steps.vars.outputs.sha_short }} | |
- name: trigger-workflow | |
run: gh workflow run --repo digitalocean/pydo python-client-gen.yml --ref main -f openapi_short_sha=${{ steps.vars.outputs.sha_short }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TRIGGER_TOKEN }} |