Skip to content

Commit

Permalink
Fix PreCommitUpdate.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Jan 10, 2025
1 parent 075eb19 commit f202456
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/PreCommitUpdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ jobs:
run: |
# save updated versions to file and ignore exit code
pre-commit autoupdate | grep updating >> ~/pre-commit.msg || true
# create output
echo "PRE_COMMIT_MSG=\"chore: :robot: pre-commit update\n\n$(cat ~/pre-commit.msg)\"" >> "$GITHUB_OUTPUT"
- name: Apply patch to template
run: |
git diff -- .pre-commit-config.yaml > pre-commit.patch
Expand All @@ -36,7 +34,7 @@ jobs:
id: cpr
uses: peter-evans/create-pull-request@v7
with:
commit-message: "${{ steps.pre_commit_autoupdate.outputs.PRE_COMMIT_MSG }}"
commit-message: "chore: :robot: pre-commit update\n\n$(cat ~/pre-commit.msg)"
title: "[AUTO] pre-commit update"
body-path: "~/pre-commit.msg"
branch: auto-pre-commit-update
Expand Down

0 comments on commit f202456

Please sign in to comment.