Skip to content

How to get job.status into shell script? #25729

Discussion options

You must be logged in to vote

You need to provide it to the step in some way. Exactly how depends on how your script wants to consume that data. You could put it on the command line:

steps:
  - run: ./my_script.sh ${{ job.status }}

Or into the environment:

steps:
  - run: ./my_script.sh
    env:
      STATUS: ${{ job.status }}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants