From 057eacb4f5d5f77d73c68c5fe8be773bb58a6af4 Mon Sep 17 00:00:00 2001 From: Enrico-Infrinity <124153735+Enrico-Infrinity@users.noreply.github.com> Date: Tue, 11 Apr 2023 17:09:37 +0200 Subject: [PATCH] Update entrypoint.sh Deleted the line #196 ----> echo "conclusion=${conclusion}" >> $GITHUB_OUTPUT Inserted new line #200 ----> echo "conclusion=${conclusion}" >> $GITHUB_OUTPUT Inserted new line #204 ----> echo "conclusion=${conclusion}" >> $GITHUB_OUTPUT With this simple update, the routine is able to write the $conclusion value on the $GITHUB_OUTPUT, and now is possible to setup the "propagate_failure: false", and look at the result of the remote workflow action. You can try the functionality with my version below :) .... steps: - name: 'Run test' id: 'run-test' uses: Enrico-Infrinity/trigger-workflow-and-wait@v1.0 with: owner: remoteOwner repo: remoteRepo github_token: ${{ secrets.CICD_REPO_TOKEN }} workflow_file_name: main.yml ref: main wait_interval: 10 client_payload: '{}' propagate_failure: false trigger_workflow: true wait_workflow: true - name: 'Set result' run: | echo ${{ steps.run-test.outputs.conclusion }} .... It's a simple workaround, but it's working well. Enjoy!! :) --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 58dca5f..7f3ebef 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -193,14 +193,15 @@ wait_for_workflow_to_finish() { echo "Checking conclusion [${conclusion}]" echo "Checking status [${status}]" - echo "conclusion=${conclusion}" >> $GITHUB_OUTPUT done if [[ "${conclusion}" == "success" && "${status}" == "completed" ]] then + echo "conclusion=${conclusion}" >> $GITHUB_OUTPUT echo "Yes, success" else # Alternative "failure" + echo "conclusion=${conclusion}" >> $GITHUB_OUTPUT echo "Conclusion is not success, it's [${conclusion}]." if [ "${propagate_failure}" = true ]