From 702b17980242a88578d7aaf0eecb0c8f2d5b1660 Mon Sep 17 00:00:00 2001 From: Ted Spence Date: Tue, 13 Aug 2024 14:00:48 -0700 Subject: [PATCH] Update check-for-updates.yml (#32) --- .github/workflows/check-for-updates.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check-for-updates.yml b/.github/workflows/check-for-updates.yml index 3be774c..d24a40a 100644 --- a/.github/workflows/check-for-updates.yml +++ b/.github/workflows/check-for-updates.yml @@ -23,15 +23,22 @@ jobs: - name: Add the SDK Generator run: dotnet tool install SdkGenerator --global - - name: Run dotnet pack + - name: Pull the latest OpenAPI file and generate the SDK run: SdkGenerator build -p ./sdk-config.json + - name: Determine patch notes, if any + id: patch-notes + run: SdkGenerator get-patch-notes -p ./sdk-config.json + + - name: Determine release name, if any + id: pr-name + run: SdkGenerator get-release-name -p ./sdk-config.json + - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v6 - - name: Check outputs - if: ${{ steps.cpr.outputs.pull-request-number }} - run: | - echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" - \ No newline at end of file + with: + commit-message: ${{ steps.patch-notes.outputs }} + title: ${{ steps.pr-name.outputs }} + +