-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
62 lines (55 loc) · 1.87 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
name: Nucleus
description: Sets up SimCube Nucleus.
inputs:
setupDotNet:
description: Boolean flag which declares if dotnet should be setup.
required: false
default: 'true'
dotnetVersion:
description: Boolean flag which declares if dotnet should be setup.
required: false
default: '8.0.x'
checkout:
description: Boolean flag which declares if git checkout should take place or not by this script.
required: false
default: 'true'
installNucleus:
description: Boolean flag which declares if should install Nucleus.Cli
required: false
default: 'true'
installSonarScanner:
description: Boolean flag which declares if should install Nucleus.Cli
required: false
default: 'false'
addNugetSource:
description: Boolean flag indicates if should add nuget source.
required: false
default: 'false'
PAT:
description: PAT for read packages to get nucleus while its private.
required: false
default: ''
runs:
using: composite
steps:
- if: ${{ inputs.setupDotNet == 'true' }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ inputs.dotnetVersion }}
- if: ${{ inputs.addNugetSource == 'true' }}
shell: bash
run: dotnet nuget add source "https://nuget.pkg.github.com/SimCubeLtd/index.json" -n simcube-github -u prom3theu5 -p ${{ inputs.PAT }} --store-password-in-clear-text
- if: ${{ inputs.installNucleus == 'true' }}
shell: bash
run: |
dotnet nuget locals http-cache --clear
dotnet tool update -g Nucleus.Cli
- if: ${{ inputs.installSonarScanner == 'true' }}
shell: bash
run: |
dotnet nuget locals http-cache --clear
dotnet tool update -g dotnet-sonarscanner
- if: ${{ inputs.checkout == 'true' }}
uses: actions/checkout@v4
with:
fetch-depth: 0