diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index 29a60a71..0328e6f8 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -13,17 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2.3.4 - name: Get the version id: get_version run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.100 - - name: Restore Nuget Packages run: dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -78,7 +73,7 @@ jobs: - name: Get Release id: getrelease - uses: octokit/request-action@v1.x + uses: octokit/request-action@v2.0.17 with: route: GET /repos/StuartFerguson/TransactionProcessor/releases/tags/${{ steps.get_version.outputs.VERSION }} env: @@ -86,7 +81,7 @@ jobs: - name: Build Release Notes id: buildreleasenotes - uses: gr2m/get-json-paths-action@v1.x + uses: gr2m/get-json-paths-action@v1.0.4 with: json: ${{ steps.getrelease.outputs.data }} releasenote: "body" diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index 265850f3..ffdb4ac1 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -14,12 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.100 + - uses: actions/checkout@v2.3.4 - name: Restore Nuget Packages run: dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -35,7 +30,7 @@ jobs: 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" - name: Setup Node.js for use with actions - uses: actions/setup-node@v1.1.0 + uses: actions/setup-node@v1.4.4 - name: Combine Coverage run: | diff --git a/.github/workflows/prereleasenuget.yml b/.github/workflows/prereleasenuget.yml index 9b528db5..26637371 100644 --- a/.github/workflows/prereleasenuget.yml +++ b/.github/workflows/prereleasenuget.yml @@ -15,12 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + - uses: actions/checkout@v2.3.4 with: - dotnet-version: 3.1.100 + fetch-depth: 0 - name: Restore Nuget Packages run: dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -28,13 +25,13 @@ jobs: - name: Build Code run: dotnet build TransactionProcessor.sln --configuration Release - - name: Get the last version - id: get_version - run: echo ::set-output name=VERSION::$(git tag --sort=committerdate | tail -1) - + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@1.0.0" + - name: Print Version id: next_version - run: echo ::set-output name=VERSION::${{ steps.get_version.outputs.VERSION }}-build$GITHUB_RUN_NUMBER + run: echo ::set-output name=VERSION::${{ steps.previoustag.outputs.tag }}-build$GITHUB_RUN_NUMBER - name: Build and Publish Nuget Packages run: | diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index b8977956..dfec0962 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -14,12 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.100 + - uses: actions/checkout@v2.3.4 - name: Restore Nuget Packages run: dotnet restore TransactionProcessor.sln --source https://api.nuget.org/v3/index.json --source https://www.myget.org/F/transactionprocessing/api/v3/index.json @@ -39,7 +34,3 @@ jobs: - name: Run Integration Tests run: dotnet test "TransactionProcessor.IntegrationTests\TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest - - - name: Setup tmate session - if: failure() - uses: mxschmitt/action-tmate@v1 diff --git a/.github/workflows/release-management.yml b/.github/workflows/release-management.yml index 83d8d984..79b12044 100644 --- a/.github/workflows/release-management.yml +++ b/.github/workflows/release-management.yml @@ -11,6 +11,6 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: toolmantim/release-drafter@v5.2.0 + - uses: toolmantim/release-drafter@v5.12.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}