From f361af40754f177cfb8d9ad850966d33dd60078e Mon Sep 17 00:00:00 2001 From: Yuvraj Date: Sun, 3 Jul 2022 10:24:42 +0530 Subject: [PATCH] fix flyteidl version upgrade automation (#305) Signed-off-by: Yuvraj --- flyteidl/.github/workflows/release-automation.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flyteidl/.github/workflows/release-automation.yaml b/flyteidl/.github/workflows/release-automation.yaml index f9064e0661..b0388223da 100644 --- a/flyteidl/.github/workflows/release-automation.yaml +++ b/flyteidl/.github/workflows/release-automation.yaml @@ -13,8 +13,8 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v2 - - name: Update flyteidl version + - name: Update flyteidl version 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"}' + WORKFLOW_ID=$(curl -sS https://api.github.com/repos/flyteorg/${{matrix.COMPONENT}}/actions/workflows | jq '.workflows[] | select(.path == ".github/workflows/upgrade_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", "inputs": {"component": "flyteidl"}}' shell: bash