From d7e8b2cc0771ccb7cd9807eabd713f7bd3572868 Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Wed, 27 Jul 2022 13:22:03 -0700 Subject: [PATCH] Fix script --- bin/sync_expected_output.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sync_expected_output.ps1 b/bin/sync_expected_output.ps1 index 5ca6a6e..ce3fbb7 100755 --- a/bin/sync_expected_output.ps1 +++ b/bin/sync_expected_output.ps1 @@ -68,7 +68,7 @@ Start-Sleep -Seconds 5 # Lookup the run id (it is not perfect because of the APIs...) Write-Host 'Lookup run id' -$runId = Invoke-Command { & gh run list --workflow $workflow --branch $ref --limit 100 --json databaseId --jq '.[].databaseId' } +$runId = Invoke-Command { & gh run list --workflow $workflow --branch $ref --limit 1 --json databaseId --jq '.[].databaseId' } # Wait for the workflow to finish Write-Host "Wait for workflow $runId to complete"