Skip to content

Commit fecfabd

Browse files
authored
Update dispatch.yml
1 parent 7b442f4 commit fecfabd

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

.github/workflows/dispatch.yml

+21-16
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
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+
144
jobs:
15-
deploy:
5+
job1:
166
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 }}
1811
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"

0 commit comments

Comments
 (0)