File tree Expand file tree Collapse file tree 5 files changed +14
-36
lines changed Expand file tree Collapse file tree 5 files changed +14
-36
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,12 @@ jobs:
1313 runs-on : ubuntu-latest
1414
1515 steps :
16- - uses : actions/checkout@v1
16+ - uses : actions/checkout@v2.3.4
1717
1818 - name : Get the version
1919 id : get_version
2020 run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
2121
22- - name : Setup .NET Core
23- uses : actions/setup-dotnet@v1
24- with :
25- dotnet-version : 3.1.100
26-
2722 - name : Restore Nuget Packages
2823 run : dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
2924
@@ -78,15 +73,15 @@ jobs:
7873
7974 - name : Get Release
8075 id : getrelease
81- uses : octokit/request-action@v1.x
76+ uses : octokit/request-action@v2.0.17
8277 with :
8378 route : GET /repos/StuartFerguson/TransactionProcessor/releases/tags/${{ steps.get_version.outputs.VERSION }}
8479 env :
8580 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8681
8782 - name : Build Release Notes
8883 id : buildreleasenotes
89- uses : gr2m/get-json-paths-action@v1.x
84+ uses : gr2m/get-json-paths-action@v1.0.4
9085 with :
9186 json : ${{ steps.getrelease.outputs.data }}
9287 releasenote : " body"
Original file line number Diff line number Diff line change 1414 runs-on : ubuntu-latest
1515
1616 steps :
17- - uses : actions/checkout@v1
18-
19- - name : Setup .NET Core
20- uses : actions/setup-dotnet@v1
21- with :
22- dotnet-version : 3.1.100
17+ - uses : actions/checkout@v2.3.4
2318
2419 - name : Restore Nuget Packages
2520 run : dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
3530 dotnet test "TransactionProcessor.TransactionAggregate.Tests\TransactionProcessor.TransactionAggregate.Tests.csproj" /p:CollectCoverage=true /p:Exclude="[xunit*]*" /p:ExcludeByAttribute="Obsolete" /p:ExcludeByAttribute="GeneratedCodeAttribute" /p:ExcludeByAttribute="CompilerGeneratedAttribute" /p:ExcludeByAttribute="ExcludeFromCodeCoverageAttribute" /p:CoverletOutput="../lcov3.info" /maxcpucount:1 /p:CoverletOutputFormat="lcov"
3631
3732 - name : Setup Node.js for use with actions
38- uses : actions/setup-node@v1.1.0
33+ uses : actions/setup-node@v1.4.4
3934
4035 - name : Combine Coverage
4136 run : |
Original file line number Diff line number Diff line change @@ -15,26 +15,23 @@ jobs:
1515 runs-on : ubuntu-latest
1616
1717 steps :
18- - uses : actions/checkout@v1
19-
20- - name : Setup .NET Core
21- uses : actions/setup-dotnet@v1
18+ - uses : actions/checkout@v2.3.4
2219 with :
23- dotnet-version : 3.1.100
20+ fetch-depth : 0
2421
2522 - name : Restore Nuget Packages
2623 run : dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
2724
2825 - name : Build Code
2926 run : dotnet build TransactionProcessor.sln --configuration Release
3027
31- - name : Get the last version
32- id : get_version
33- run : echo ::set-output name=VERSION::$(git tag --sort=committerdate | tail -1)
34-
28+ - name : ' Get Previous tag '
29+ id : previoustag
30+ uses : " WyriHaximus/github-action-get-previous-tag@1.0.0 "
31+
3532 - name : Print Version
3633 id : next_version
37- run : echo ::set-output name=VERSION::${{ steps.get_version .outputs.VERSION }}-build$GITHUB_RUN_NUMBER
34+ run : echo ::set-output name=VERSION::${{ steps.previoustag .outputs.tag }}-build$GITHUB_RUN_NUMBER
3835
3936 - name : Build and Publish Nuget Packages
4037 run : |
Original file line number Diff line number Diff line change 1414 runs-on : ubuntu-latest
1515
1616 steps :
17- - uses : actions/checkout@v1
18-
19- - name : Setup .NET Core
20- uses : actions/setup-dotnet@v1
21- with :
22- dotnet-version : 3.1.100
17+ - uses : actions/checkout@v2.3.4
2318
2419 - name : Restore Nuget Packages
2520 run : dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json
3934
4035 - name : Run Integration Tests
4136 run : dotnet test "TransactionProcessor.IntegrationTests\TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest
42-
43- - name : Setup tmate session
44- if : failure()
45- uses : mxschmitt/action-tmate@v1
Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212 steps :
1313 # Drafts your next Release notes as Pull Requests are merged into "master"
14- - uses : toolmantim/release-drafter@v5.2.0
14+ - uses : toolmantim/release-drafter@v5.12.1
1515 env :
1616 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments