Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 3

Output from one step (with ID) to another is empty.

Solved! Go to Solution.

Hey there, and thanks for the look :)

I'm trying to wrap my head around github actions, and how it all works.

I'm currently trying to run a small script every time a PR is merged, with some specific files in it, and this seems to work.

 

Where I'm running in to issues is when I try to pass some values between steps.

From step 3 to step 4 works

 

However from step 4 to step 5 doesn't seem to work.

 

The entire workflow is here

2 Replies
Highlighted
Solution
GitHub Staff
Message 2 of 3

Re: Output from one step (with ID) to another is empty.

Hey @Duckle29 , I think you want 

${{steps.generate_qmkpid.outputs.output}}

 here 

 

The following workflow worked for me below:

```

steps:
  - run: echo "::set-output name=foo::bar"
     id: generate_qmkpid
  - run: echo ${{steps.generate_qmkpid.outputs.foo}}

```

 

There's another example located in the documentation here: https://github.com/actions/toolkit/blob/master/docs/commands.md#set-outputs

Highlighted
Copilot Lvl 3
Message 3 of 3

Re: Output from one step (with ID) to another is empty.

Thanks. That's what I get for using ambiguous variable names :D