-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix job outputs are only passed to children (fix #151)
- Loading branch information
Showing
4 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/test\.yaml:26:31: property "first" is not defined in object type {second: {.*outputs: {second: string}.*}} \[expression\]/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Test | ||
|
||
on: push | ||
|
||
jobs: | ||
first: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
first: 'output from parent' | ||
steps: | ||
- run: echo 'first' | ||
|
||
second: | ||
needs: [first] | ||
runs-on: ubuntu-latest | ||
outputs: | ||
second: 'output from second' | ||
steps: | ||
- run: echo 'second' | ||
|
||
third: | ||
needs: [second] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo '${{ toJSON(needs.second.outputs) }}' | ||
- run: echo '${{ toJSON(needs.first.outputs) }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Test | ||
|
||
on: push | ||
|
||
jobs: | ||
first: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
first: 'output from parent' | ||
steps: | ||
- run: echo 'first' | ||
|
||
second: | ||
needs: [first] | ||
runs-on: ubuntu-latest | ||
outputs: | ||
second: 'output from second' | ||
steps: | ||
- run: echo 'second' | ||
|
||
third: | ||
needs: [first, second] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo '${{ toJSON(needs.second.outputs) }}' | ||
- run: echo '${{ toJSON(needs.first.outputs) }}' |