Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Update entrypoint.sh#85

Open
Enrico-Infrinity wants to merge 1 commit intoconvictional:masterfrom
Enrico-Infrinity:patch-1
Open

Update entrypoint.sh#85
Enrico-Infrinity wants to merge 1 commit intoconvictional:masterfrom
Enrico-Infrinity:patch-1

Conversation

@Enrico-Infrinity
Copy link
Copy Markdown

@Enrico-Infrinity Enrico-Infrinity commented Apr 11, 2023

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!! :)

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!! :)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants