From 3870809bcdca87aecca10053a60b843c26dc6faa Mon Sep 17 00:00:00 2001 From: David Finol Date: Tue, 3 Dec 2024 23:11:05 -0600 Subject: [PATCH] Update workflow --- .github/workflows/dotnet.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f8365ec..7dc997c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,6 +43,8 @@ jobs: path: FinolDigital.Cgs.CardGameDef/bin/Release/netstandard2.1/FinolDigital.Cgs.CardGameDef.dll - name: Generate schema run: dotnet SchemaGeneration/bin/Release/net6.0/SchemaGeneration.dll + - name: Copy schema + run: cp CardGameDef.json schema/ - name: Upload CardGameDef.json uses: actions/upload-artifact@v4 with: @@ -61,6 +63,14 @@ jobs: - name: Push nuget package if: github.event.action == 'published' run: dotnet nuget push "FinolDigital.Cgs.CardGameDef/bin/Release/FinolDigital.Cgs.CardGameDef.${VERSION}.nupkg" --source "github" + - name: Raise PR for schema + if: github.event.action == 'published' + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.CGS_PAT }} + path: schema + branch: cardgamedef-${{ needs.build.outputs.version }} + title: CardGameDef ${{ needs.build.outputs.version }} updateCgs: name: Update CGS