From b2e013d8211b1cccdc1a0f03d135452ef5e1acee Mon Sep 17 00:00:00 2001 From: Anthony Martin <38542602+anthony-c-martin@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:09:22 -0500 Subject: [PATCH] Ensure a summary log is written to output --- .github/workflows/update-types.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update-types.yml b/.github/workflows/update-types.yml index de5c95f42f..6f4c22fa3e 100644 --- a/.github/workflows/update-types.yml +++ b/.github/workflows/update-types.yml @@ -56,8 +56,7 @@ jobs: run: npm ci working-directory: src/generator - - id: generate - name: Run generator + - name: Run generator run: | if [ -z "${{ github.event.inputs.single_path }}" ] then @@ -65,15 +64,12 @@ jobs: else npm run generate -- --specs-dir ../../workflow-temp/azure-rest-api-specs --single-path ${{ github.event.inputs.single_path }} fi - - summary="$(<../../generated/summary.log)" - summary="${summary//'%'/'%25'}" - summary="${summary//$'\n'/'%0A'}" - summary="${summary//$'\r'/'%0D'}" - - echo "summary=$summary" >> $GITHUB_OUTPUT working-directory: src/generator + - name: Write summary + if: ${{ always() }} + run: cat generated/summary.log >> $GITHUB_STEP_SUMMARY + - id: get_swagger_gh_uri name: Get GitHub URI for azure-rest-api-specs run: |