Skip to content

Commit

Permalink
Fix workflow call
Browse files Browse the repository at this point in the history
  • Loading branch information
rluzuriaga authored Aug 15, 2024
1 parent 65402b1 commit 3e84527
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/stable-releases-2_test-validity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Call main workflow that calls all the distros
run: gh workflow run --repo rluzuriaga/testing-distros execute_test_install_fog.yml
run: gh workflow run --repo FOGProject/fogproject-install-validation run_all_distros.yml
env:
GITHUB_TOKEN: ${{ secrets.INSTALL_VALIDATION_REPO_TOKEN }}

Expand All @@ -27,15 +27,15 @@ jobs:

- name: Get run IDs
run: |
run_id=$(gh run list --repo rluzuriaga/testing-distros --workflow execute_test_install_fog.yml --json databaseId --limit 1 | jq -r '.[0].databaseId')
run_id=$(gh run list --repo FOGProject/fogproject-install-validation --workflow run_all_distros.yml --json databaseId --limit 1 | jq -r '.[0].databaseId')
echo "RUN_ID=$run_id" >> $GITHUB_ENV
- name: Check if distro workflow passed or failed
run: |
run_status=""
while [[ $run_status != "success" && $run_status != "failure" ]]; do
sleep 15
run_status=$(gh run view --repo rluzuriaga/testing-distros ${{ env.RUN_ID }} --exit-status --json conclusion | jq -r '.conclusion')
run_status=$(gh run view --repo FOGProject/fogproject-install-validation ${{ env.RUN_ID }} --exit-status --json conclusion | jq -r '.conclusion')
done
if [[ $run_status == "failure" ]]; then
Expand Down

0 comments on commit 3e84527

Please sign in to comment.