From 5093eaf63bd4a2fb02b2e77819962cc2bbcdef50 Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Mon, 6 May 2024 11:27:00 +0200 Subject: [PATCH] A fex fixes --- .github/workflows/update-specs-and-client-libraries.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-specs-and-client-libraries.yaml b/.github/workflows/update-specs-and-client-libraries.yaml index c377c078..16b3b070 100644 --- a/.github/workflows/update-specs-and-client-libraries.yaml +++ b/.github/workflows/update-specs-and-client-libraries.yaml @@ -164,6 +164,7 @@ jobs: - generator: typescript-axios git_repo_id: onfido-node preCommit: | + npx prettier --write package.json npm install version: ${{ needs.generate_specs_and_libraries.outputs.typescript_axios_version }} update: ${{ inputs.update-onfido-node || true }} @@ -208,7 +209,7 @@ jobs: if: ${{ matrix.update }} run: | ${{ matrix.preCommit }} - - name: Update CHANGELOG (if any change detected) + - name: Update CHANGELOG and lint .md files as needed if: ${{ matrix.update }} run: | if [ "$(git status --porcelain=v1 | wc -l | sed -e 's/^[[:space:]]*//')" != "" ]; @@ -226,6 +227,8 @@ jobs: grep -v "^# Changelog" CHANGELOG.md ) >| $TMP_FILE mv $TMP_FILE CHANGELOG.md fi + + npx prettier --write *.md fi - name: Create Pull Request with changes after library update uses: peter-evans/create-pull-request@v6 @@ -235,7 +238,7 @@ jobs: commit-message: Upgrade after onfido-openapi-spec change ${{ needs.generate_specs_and_libraries.outputs.last_commit_short_sha }} title: Refresh ${{ matrix.git_repo_id }} after onfido-openapi-spec update (${{ needs.generate_specs_and_libraries.outputs.last_commit_short_sha }}) body: | - Auto-generated PR with changes till commit ${{ github.repository_owner }}/onfido-openapi-spec@${{ needs.generate_specs_and_libraries.outputs.last_commit_long_sha }} (included) + Auto-generated PR with changes till commit ${{ github.repository_owner }}/onfido-openapi-spec@${{ needs.generate_specs_and_libraries.outputs.last_commit_long_sha }} (included) Additional changes: - None