From 56b58d42d51e9a2b8f8747a578b0819933e5c48f Mon Sep 17 00:00:00 2001 From: Rami CHAABANE Date: Sat, 26 Jul 2025 19:50:15 +0200 Subject: [PATCH] chore(ci): wait for renovate workflow to finish --- .github/workflows/ci.yaml | 6 ++++-- scripts/wait-renovate-workflow.sh | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3c30c6a..fedfd18 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -135,9 +135,9 @@ jobs: -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/RamyChaabane/argocd-voteapp/dispatches \ -d '{ - "event_type": "trigger-renovate" + "event_type": "trigger-renovate", "client_payload": { - "version": $version_tag + "version": "$version_tag" } }' @@ -166,7 +166,9 @@ jobs: env: GH_TOKEN: ${{ secrets.TRIGGER_PAT }} REPO: "RamyChaabane/argocd-voteapp" + WORKFLOW_NAME: "Run Renovate on Dispatch" TARGET_VERSION: ${{ needs.build.outputs.version_tag }} + ARTIFACT_NAME: "version-${{ needs.build.outputs.version_tag }}" run: ./scripts/wait-renovate-workflow.sh #-------------------------------------- diff --git a/scripts/wait-renovate-workflow.sh b/scripts/wait-renovate-workflow.sh index f3dc95d..bc9994c 100755 --- a/scripts/wait-renovate-workflow.sh +++ b/scripts/wait-renovate-workflow.sh @@ -1,8 +1,5 @@ #!/bin/bash -WORKFLOW_NAME="Run Renovate on Dispatch" -ARTIFACT_NAME="version-${TARGET_VERSION}" - echo "Looking for a workflow run in $REPO with artifact: $ARTIFACT_NAME" for i in {1..60}; do