Skip to content

Commit

Permalink
Enable flyteidl update version for all component (#136)
Browse files Browse the repository at this point in the history
* enable flyteidl update version for all component

Signed-off-by: yuvraj <evalsocket@gmail.com>

* Added more component

Signed-off-by: yuvraj <evalsocket@gmail.com>

* remove flytekit from component

Signed-off-by: yuvraj <evalsocket@gmail.com>
  • Loading branch information
yindia committed Apr 3, 2021
1 parent aab0de1 commit c1427d6
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions flyteidl/.github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,14 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
COMPONENT: [flyteadmin, flytepropeller, flyteconsole, flytecopilot, flyteplugins, datacatalog]
fail-fast: false
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
- name: Update flyteidl version
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"}'
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"}'
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

0 comments on commit c1427d6

Please sign in to comment.