Skip to content

Commit 13abe47

Browse files
author
IvanZosimov
committed
Update step id naming
1 parent aefe5b4 commit 13abe47

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ jobs:
114114
- uses: actions/checkout@v3
115115
- name: Setup dotnet
116116
uses: actions/setup-dotnet@v3
117-
id: cp310
117+
id: stepid
118118
with:
119119
dotnet-version: ${{ matrix.dotnet }}
120120
- name: Create temporary global.json
121-
run: echo '{"sdk":{"version": "${{ steps.cp310.outputs.dotnet-version }}"}}' > ./global.json
121+
run: echo '{"sdk":{"version": "${{ steps.stepid.outputs.dotnet-version }}"}}' > ./global.json
122122
- name: Execute dotnet
123123
run: dotnet build <my project>
124124
```
@@ -178,10 +178,10 @@ In case of a single version installation, the `dotnet-version` output contains t
178178

179179
```yaml
180180
- uses: actions/setup-dotnet@v3
181-
id: cp310
181+
id: stepid
182182
with:
183183
dotnet-version: 3.1.422
184-
- run: echo '${{ steps.cp310.outputs.dotnet-version }}' # outputs 3.1.422
184+
- run: echo '${{ steps.stepid.outputs.dotnet-version }}' # outputs 3.1.422
185185
```
186186

187187
**Multiple version installation**
@@ -190,26 +190,26 @@ In case of a multiple version installation, the `dotnet-version` output contains
190190

191191
```yaml
192192
- uses: actions/setup-dotnet@v3
193-
id: cp310
193+
id: stepid
194194
with:
195195
dotnet-version: |
196196
3.1.422
197197
5.0.408
198-
- run: echo '${{ steps.cp310.outputs.dotnet-version }}' # outputs 5.0.408
198+
- run: echo '${{ steps.stepid.outputs.dotnet-version }}' # outputs 5.0.408
199199
```
200200
**Installation from global.json**
201201

202202
When the `dotnet-version` input is used along with the `global-json-file` input, the `dotnet-version` output contains the version resolved from the `global.json`.
203203

204204
```yaml
205205
- uses: actions/setup-dotnet@v3
206-
id: cp310
206+
id: stepid
207207
with:
208208
dotnet-version: |
209209
3.1.422
210210
5.0.408
211211
global-json-file: "./global.json" # contains version 2.2.207
212-
- run: echo '${{ steps.cp310.outputs.dotnet-version }}' # outputs 2.2.207
212+
- run: echo '${{ steps.stepid.outputs.dotnet-version }}' # outputs 2.2.207
213213
```
214214

215215
## Environment variables

0 commit comments

Comments
 (0)