Skip to content

Commit

Permalink
Fix vbump v2 (#194)
Browse files Browse the repository at this point in the history
# Pull Request

Fix issue with `.pre-commit-config.yaml` file
  • Loading branch information
dgrassellyb authored Nov 13, 2023
1 parent e3d2608 commit 39ecaca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/version-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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: >-
[email protected]
Expand Down

0 comments on commit 39ecaca

Please sign in to comment.