Adjust ReleaseNotes to ensure the latest release is a TGS release

[APIDeploy][NugetDeploy][TGSDeploy]

Closes #1141
This commit is contained in:
Dominion
2023-04-25 22:06:21 -04:00
parent 232b1a017a
commit 719e5d91cb
2 changed files with 65 additions and 11 deletions
+18 -1
View File
@@ -650,9 +650,26 @@ jobs:
INCLUDE_SYMBOLS: true
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
ensure-release:
name: Ensure TGS Release is Latest GitHub Release
needs: [deploy-dm, deploy-http]
runs-on: ubuntu-latest
if: github.event_name == 'push' && !(github.event.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[TGSDeploy]')) && (contains(github.event.head_commit.message, '[APIDeploy]') || contains(github.event.head_commit.message, '[DMDeploy]'))
steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.TGS_DOTNET_VERSION }}
- name: Checkout
uses: actions/checkout@v3
- name: Run ReleaseNotes with --ensure-release
run: dotnet run -c Release --project tools/ReleaseNotes --ensure-release
deploy-tgs:
name: Deploy TGS
needs: [upload-code-coverage, validate-openapi-spec]
needs: [deploy-dm, deploy-http]
runs-on: windows-latest
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[TGSDeploy]')
steps: