File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : my action
2
2
description : Set some variable as output
3
3
inputs :
4
- my-input :
4
+ my_input :
5
5
description : ' Some input'
6
6
required : true
7
7
outputs :
8
- my-output :
8
+ my_output :
9
9
description : ' The output'
10
- value : ${{ steps.my-step.outputs.my-output }}
10
+ value : ${{ steps.my-step.outputs.my_output }}
11
11
runs :
12
12
using : composite
13
13
steps :
14
14
- id : my-step
15
15
name : Step to write output
16
16
run : |
17
- echo ${{ inputs.my-input }}
18
- echo "my-output ='output from my action.'" >> $GITHUB_OUTPUT
17
+ echo ${{ inputs.my_input }}
18
+ echo "my_output ='output from my action.'" >> $GITHUB_OUTPUT
19
19
shell : bash
Original file line number Diff line number Diff line change 6
6
job1 :
7
7
runs-on : ubuntu-latest
8
8
outputs :
9
- my-output-from-job : ${{ steps.my-action.outputs.my-output .value }}
9
+ my_output_from_job : ${{ steps.my-action.outputs.my_output .value }}
10
10
steps :
11
11
- uses : actions/checkout@v4
12
12
- id : my-action
13
13
uses : ./.github/actions/my-action
14
14
with :
15
- my-input : ' Input from job1'
15
+ my_input : ' Input from job1'
16
16
- name : use output from the custom action
17
- run : echo ${{ steps.my-action.outputs.my-output .value }}
17
+ run : echo ${{ steps.my-action.outputs.my_output .value }}
18
18
19
19
job2 :
20
20
runs-on : ubuntu-latest
21
21
needs : job1
22
22
steps :
23
23
- run : |
24
- echo ${{ needs.job1.outputs.my-output-from-job }}
24
+ echo ${{ needs.job1.outputs.my_output_from_job }}
You can’t perform that action at this time.
0 commit comments