Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot see actual status of downstream job #8

Open
kaborso opened this issue Jun 7, 2021 · 3 comments
Open

Cannot see actual status of downstream job #8

kaborso opened this issue Jun 7, 2021 · 3 comments

Comments

@kaborso
Copy link

kaborso commented Jun 7, 2021

The propagate_failure option does not account for other statuses returned by the downstream job, so the action only returns failure or success. The conclusion environment variable holds the actual status reported by the downstream job. I propose exporting it as an output from the action for use in subsequent steps that may need to respond to whether the job timed out, was skipped, was cancelled, and so on.

@ArminazK
Copy link

ArminazK commented Mar 8, 2023

hi, this would be really usefull if some implements. Thanks

@Enrico-Infrinity
Copy link

Enrico-Infrinity commented Apr 11, 2023

I have created this PR:

#85

It's solving the problem of the "conclusion" variable in the $GITHUB_OUTPUT.

You can try my first release, it's a fork of this repo, like this:

steps:
  - name: 'Run test'
    id: 'run-test'
    uses: Enrico-Infrinity/[email protected]
    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 }}

If someone here can do a review of my PR, maybe we can get something official and stable :)

@santinogue
Copy link

could we get this PR merged @Enrico-Infrinity ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants