We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7666dc9 commit 5e730f5Copy full SHA for 5e730f5
1 file changed
.github/workflows/pass_json_bt_jobs.yaml
@@ -0,0 +1,25 @@
1
+name: json between jobs
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+jobs:
7
+ job1:
8
+ name: json-thing
9
+ runs-on: ubuntu-latest
10
+ outputs:
11
+ had_issue: ${{ steps.set-bool.outputs.env_bool }}
12
+ steps:
13
+ - id: set-bool
14
+ run: |
15
+ SOME_JSON={"something":"somethingValue","other":"otherValue"}
16
+ echo "env_bool=$SOME_JSON" >> $GITHUB_OUTPUT
17
18
+ job2:
19
+ name: fail with error
20
21
+ needs: job1
22
23
24
25
+ echo ${{ needs.job1.outputs.had_issue }}
0 commit comments