-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
70 lines (62 loc) · 1.86 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: 'ZyAction: .NET Setup'
author: Florian Bernd
description: Sets up a specific version of the .NET SDK.
branding:
icon: play-circle
color: blue
inputs:
dotnet-version:
description: >
Optional SDK version(s) to use. If not provided, will install 'global.json' version when available.
Supports multi-line strings.
type: string
required: false
default: ''
dotnet-quality:
description: >
Sets up the action to install the latest build of the specified quality in the channel.
Possible values:
- daily
- signed
- validated
- preview
- ga
type: string
required: false
default: ''
global-json-file:
description: Optional 'global.json' location, if the 'global.json' isn't located in the root of the repo.
type: string
required: false
default: ''
problem-matcher:
description: Registers the default .NET problem matcher.
type: boolean
required: false
default: true
outputs:
dotnet-version:
description: Contains the installed by action .NET SDK version for reuse.
value: ${{ steps.setup.outputs.dotnet-version }}
runs:
using: composite
steps:
- name: Setup .NET
id: setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ inputs.dotnet-version }}
dotnet-quality: ${{ inputs.dotnet-quality }}
global-json-file: ${{ inputs.global-json-file }}
- name: Configure Environment
shell: bash
run: |
echo "DOTNET_NOLOGO=1" >> $GITHUB_ENV
echo "DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1" >> $GITHUB_ENV
echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" >> $GITHUB_ENV
echo "DOTNET_GENERATE_ASPNET_CERTIFICATE=0" >> $GITHUB_ENV
- name: Disable Problem Matcher
if: inputs.problem-matcher != 'true'
shell: bash
run: |
echo "::remove-matcher owner=csc::"