From 6776bec36409c3fe6fe99a0b457c83c98f48752c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Grasselly?= <56442075+dgrassellyb@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:23:53 +0100 Subject: [PATCH 1/2] add updates --- .github/workflows/version-bump.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/version-bump.yaml b/.github/workflows/version-bump.yaml index 0d418744..351e2d13 100644 --- a/.github/workflows/version-bump.yaml +++ b/.github/workflows/version-bump.yaml @@ -138,6 +138,9 @@ jobs: else FILE_PATTERN="${{ inputs.package-subdirectory }}/NEWS.md ${{ inputs.package-subdirectory }}/DESCRIPTION" fi + if [[ "${{ steps.precommit-config-exists.outputs.files_exists == 'true' }}" ]]; then + FILE_PATTERN="$FILE_PATTERN .pre-commit-config.yaml" + fi echo "file-pattern=$FILE_PATTERN" >> $GITHUB_OUTPUT shell: bash @@ -146,7 +149,7 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: "[skip actions] Bump version to ${{ env.NEW_PKG_VERSION }}" - file_pattern: "${{ steps.file-pattern.outputs.file-pattern }} .pre-commit-config.yaml" + file_pattern: "${{ steps.file-pattern.outputs.file-pattern }}" commit_user_name: insights-engineering-bot commit_user_email: >- 68416928+insights-engineering-bot@users.noreply.github.com From 06ca023fdd42176c134589e3ac22cca768e1a218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daphn=C3=A9=20Grasselly?= <56442075+dgrassellyb@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:28:45 +0100 Subject: [PATCH 2/2] fix typo --- .github/workflows/version-bump.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version-bump.yaml b/.github/workflows/version-bump.yaml index 351e2d13..cfa681ad 100644 --- a/.github/workflows/version-bump.yaml +++ b/.github/workflows/version-bump.yaml @@ -138,7 +138,7 @@ jobs: else FILE_PATTERN="${{ inputs.package-subdirectory }}/NEWS.md ${{ inputs.package-subdirectory }}/DESCRIPTION" fi - if [[ "${{ steps.precommit-config-exists.outputs.files_exists == 'true' }}" ]]; then + if [[ '${{ steps.precommit-config-exists.outputs.files_exists }}' == 'true' ]]; then FILE_PATTERN="$FILE_PATTERN .pre-commit-config.yaml" fi echo "file-pattern=$FILE_PATTERN" >> $GITHUB_OUTPUT