Skip to content

Commit 99ff341

Browse files
committed
Adapt variable names
1 parent 2357295 commit 99ff341

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/actions/my-action/action.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: my action
22
description: Set some variable as output
33
inputs:
4-
my-input:
4+
my_input:
55
description: 'Some input'
66
required: true
77
outputs:
8-
my-output:
8+
my_output:
99
description: 'The output'
10-
value: ${{ steps.my-step.outputs.my-output }}
10+
value: ${{ steps.my-step.outputs.my_output }}
1111
runs:
1212
using: composite
1313
steps:
1414
- id: my-step
1515
name: Step to write output
1616
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
1919
shell: bash

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ jobs:
66
job1:
77
runs-on: ubuntu-latest
88
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 }}
1010
steps:
1111
- uses: actions/checkout@v4
1212
- id: my-action
1313
uses: ./.github/actions/my-action
1414
with:
15-
my-input: 'Input from job1'
15+
my_input: 'Input from job1'
1616
- 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 }}
1818

1919
job2:
2020
runs-on: ubuntu-latest
2121
needs: job1
2222
steps:
2323
- run: |
24-
echo ${{ needs.job1.outputs.my-output-from-job }}
24+
echo ${{ needs.job1.outputs.my_output_from_job }}

0 commit comments

Comments
 (0)