Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Runs the pre-commit hooks against the changelog before committing it

Trenton H07ec74a5d6a5
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ddf23e253..46417d97e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -484,6 +484,18 @@ jobs:
uses: actions/checkout@v3
with:
ref: main
+ -
+ name: Install pipenv
+ run: |
+ pip3 install --upgrade pip setuptools wheel pipx
+ pipx install pipenv
+ -
+ name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: 3.9
+ cache: "pipenv"
+ cache-dependency-path: 'Pipfile.lock'
-
name: Append Changelog to docs
id: append-Changelog
@@ -497,9 +509,10 @@ jobs:
CURRENT_CHANGELOG=`tail --lines +2 changelog.md`
echo -e "$CURRENT_CHANGELOG" >> changelog-new.md
mv changelog-new.md changelog.md
+ pipenv run pre-commit --files changelog.md
git config --global user.name "github-actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- git commit -am "Changelog ${{ steps.get_version.outputs.version }} - GHA"
+ git commit -am "Changelog ${{ needs.publish-release.outputs.version }} - GHA"
git push origin ${{ needs.publish-release.outputs.version }}-changelog
-
name: Create Pull Request