File tree 1 file changed +21
-16
lines changed
1 file changed +21
-16
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
- workflow_dispatch :
3
- inputs :
4
- build_id :
5
- required : true
6
- type : string
7
- deploy_target :
8
- required : true
9
- type : string
10
- perform_deploy :
11
- required : true
12
- type : boolean
13
-
2
+ workflow_dispatch
3
+
14
4
jobs :
15
- deploy :
5
+ job1 :
16
6
runs-on : ubuntu-latest
17
- if : ${{ inputs.perform_deploy }}
7
+ # Map a step output to a job output
8
+ # outputs:
9
+ # output1: ${{ steps.step1.outputs.test }}
10
+ # output2: ${{ steps.step2.outputs.test }}
18
11
steps :
19
- - name : Deploy build to target
20
- run : deploy --build ${{ inputs.build_id }} --target ${{ inputs.deploy_target }}
12
+ - id : step1
13
+ run : echo "test=hello" >> "$GITHUB_OUTPUT"
14
+ - id : step2
15
+ run : |
16
+ echo ${{steps.step1.outputs.test}}
17
+ echo "test=world" >> "$GITHUB_OUTPUT"
18
+ # job2:
19
+ # runs-on: ubuntu-latest
20
+ # needs: job1
21
+ # steps:
22
+ # - env:
23
+ # OUTPUT1: ${{needs.job1.outputs.output1}}
24
+ # OUTPUT2: ${{needs.job1.outputs.output2}}
25
+ # run: echo "$OUTPUT1 $OUTPUT2"
You can’t perform that action at this time.
0 commit comments