From e0698058cb49fcd6ebae84ade08d8ce8044a31c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zuzana=20Mikl=C3=A1nkov=C3=A1?= Date: Thu, 31 Aug 2023 15:39:07 +0200 Subject: [PATCH] Poll for job status even for non-PR usecases (#82) It is important also for non-PR jobs to see progress of TF in executing the testing job so that the INFRA state can be parsed from TF's output and job result can be set as final result of the GitHub Action job. --- action.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/action.yml b/action.yml index 461f255..41d490d 100644 --- a/action.yml +++ b/action.yml @@ -237,7 +237,6 @@ runs: - name: Check if scheduled test is still running id: still_running - if: ${{ inputs.update_pull_request_status == 'true' }} run: | CMD=${{ inputs.api_url }}/requests/${{ steps.sched_test.outputs.req_id }} curl $CMD > job.json @@ -259,7 +258,6 @@ runs: - name: Get final state of Testing Farm scheduled request id: final_state - if: ${{ inputs.update_pull_request_status == 'true' }} run: | curl ${{ inputs.api_url }}/requests/${{ steps.sched_test.outputs.req_id }} > job.json if [ "${{ inputs.debug }}" == "true" ]; then