From b9a27b0d7a09ec8edf07871607d92d2c9ab7a8fd Mon Sep 17 00:00:00 2001 From: Yuvraj <10830562+evalsocket@users.noreply.github.com> Date: Sat, 3 Apr 2021 00:01:43 +0530 Subject: [PATCH] Added workflow for updating flyteidl version in all component (#132) * Added workflow for updating flyte comopnent version Signed-off-by: yuvraj * Added a single workflow for release flyteidl Signed-off-by: yuvraj * revert workflow changes Signed-off-by: yuvraj --- .../.github/workflows/release-automation.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 flyteidl/.github/workflows/release-automation.yaml diff --git a/flyteidl/.github/workflows/release-automation.yaml b/flyteidl/.github/workflows/release-automation.yaml new file mode 100644 index 000000000..5e11fc916 --- /dev/null +++ b/flyteidl/.github/workflows/release-automation.yaml @@ -0,0 +1,34 @@ +name: Invoke Workflow + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # - name: Update flyteidl version in flyteadmin + # run: | + # WORKFLOW_ID=curl -sS https://api.github.com/repos/flyteorg/flyteadmin/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/flyteadmin/actions/workflows/$WORKFLOW_ID/dispatches -H "Authorization: token ${{ secrets.FLYTE_BOT_PAT }}" -d '{"ref":"master"}' + # shell: bash + + - name: Update flyteidl version in flytepropeller + run: | + WORKFLOW_ID=curl -sS https://api.github.com/repos/flyteorg/flytepropeller/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/flytepropeller/actions/workflows/$WORKFLOW_ID/dispatches -H "Authorization: token ${{ secrets.FLYTE_BOT_PAT }}" -d '{"ref":"master"}' + shell: bash + + # - name: Update flyteidl version in flyteconsole + # run: | + # WORKFLOW_ID=curl -sS https://api.github.com/repos/flyteorg/flyteconsole/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/flyteconsole/actions/workflows/$WORKFLOW_ID/dispatches -H "Authorization: token ${{ secrets.FLYTE_BOT_PAT }}" -d '{"ref":"master"}' + # shell: bash + + # - name: Update flyteidl version in flytekit + # run: | + # WORKFLOW_ID=curl -sS https://api.github.com/repos/flyteorg/flytekit/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/flytekit/actions/workflows/$WORKFLOW_ID/dispatches -H "Authorization: token ${{ secrets.FLYTE_BOT_PAT }}" -d '{"ref":"master"}' + # shell: bash \ No newline at end of file