Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure a summary log is written to output #2365

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .github/workflows/update-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,20 @@ 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
npm run generate -- --specs-dir ../../workflow-temp/azure-rest-api-specs
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: |
Expand Down