Skip to content

Commit b86e5d8

Browse files
committed
Include changes in pre-commit update pull request
1 parent 1b92e03 commit b86e5d8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/pre-commit-auto-update.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,25 @@ jobs:
1414

1515
- name: Update dependencies
1616
run: |
17+
set -x
1718
python -m pip install --upgrade pip
1819
pip install pre-commit
1920
pre-commit autoupdate
2021
22+
- name: Gather changes
23+
id: gather-changes
24+
run: |
25+
git diff --color
26+
changes="$(git diff)"
27+
echo "changes=${changes}" >> $GITHUB_OUTPUT
28+
2129
- name: Create pull request
2230
uses: peter-evans/create-pull-request@v5
2331
with:
2432
commit-message: Update pre-commit dependencies
2533
labels: cleanup-no-release-required, dependencies, github_actions
2634
title: Update pre-commit dependencies
35+
body: |
36+
```diff
37+
${{ steps.gather-changes.outputs.changes }}
38+
```

0 commit comments

Comments
 (0)