Skip to content

Commit b42e095

Browse files
committed
fix checkout, fix formatting
1 parent b0d3c8e commit b42e095

File tree

2 files changed

+30
-26
lines changed

2 files changed

+30
-26
lines changed

.github/workflows/branches.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
2224
- name: Build solution
2325
run: dotnet build -c Release
2426
- name: Create NuGet packages

.github/workflows/master.yml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,48 @@
11
name: Master workflow
2-
on:
2+
on:
33
push:
44
branches:
55
- master
6-
- 'release/**'
7-
- 'releases/**'
6+
- "release/**"
7+
- "releases/**"
88
tags:
99
- v*
1010
- V*
1111
env:
12-
DOTNET_CLI_TELEMETRY_OPTOUT: true
12+
DOTNET_CLI_TELEMETRY_OPTOUT: true
1313
MSBUILDSINGLELOADCONTEXT: 1
1414
jobs:
1515
build:
1616
name: Build
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v2
21-
- name: Build solution
22-
run: dotnet build -c Release
23-
- name: Create NuGet packages
24-
run: dotnet pack -c Release --no-build -o nupkg
25-
- name: Upload nuget packages
26-
uses: actions/upload-artifact@v1
27-
with:
28-
name: nupkg
29-
path: nupkg
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0
23+
- name: Build solution
24+
run: dotnet build -c Release
25+
- name: Create NuGet packages
26+
run: dotnet pack -c Release --no-build -o nupkg
27+
- name: Upload nuget packages
28+
uses: actions/upload-artifact@v1
29+
with:
30+
name: nupkg
31+
path: nupkg
3032

3133
test:
3234
name: Test
3335
needs: [build]
3436
runs-on: ubuntu-latest
3537
steps:
36-
- name: Checkout
37-
uses: actions/checkout@v2
38-
- name: Download version info file
39-
uses: actions/download-artifact@v1
40-
with:
41-
name: gitversion
42-
path: ./
43-
- name: Inject version info into environment
44-
run: cat ./gitversion.env >> $GITHUB_ENV
45-
- name: Run tests
46-
run: echo "Current version is \"$GitVersion_SemVer\"" && dotnet test -c Release
38+
- name: Checkout
39+
uses: actions/checkout@v2
40+
- name: Download version info file
41+
uses: actions/download-artifact@v1
42+
with:
43+
name: gitversion
44+
path: ./
45+
- name: Inject version info into environment
46+
run: cat ./gitversion.env >> $GITHUB_ENV
47+
- name: Run tests
48+
run: echo "Current version is \"$GitVersion_SemVer\"" && dotnet test -c Release

0 commit comments

Comments
 (0)