diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml new file mode 100644 index 0000000..48c30ad --- /dev/null +++ b/.github/workflows/master.yaml @@ -0,0 +1,21 @@ +name: Invoke Workflow + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + strategy: + matrix: + COMPONENT: [flyteadmin, flytepropeller, flyteconsole, flytecopilot, flyteplugins, datacatalog, flytectl] + fail-fast: false + steps: + - uses: actions/checkout@v2 + - name: Update boilerplate + run: | + WORKFLOW_ID=$(curl -sS https://api.github.com/repos/flyteorg/${{matrix.COMPONENT}}/actions/workflows | jq '.workflows[] | select(.path == ".github/workflows/release-automation.yml") | {id}' | jq .id) + curl -X POST -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/flyteorg/${{matrix.COMPONENT}}/actions/workflows/$WORKFLOW_ID/dispatches -H "Authorization: token ${{ secrets.FLYTE_BOT_PAT }}" -d '{"ref":"master", "input": {"action","BOILERPLATE"}}' + shell: bash \ No newline at end of file