From: Trenton H Date: Mon, 26 Sep 2022 19:12:57 +0000 (-0700) Subject: Runs the pre-commit hooks against the changelog before committing it X-Git-Tag: v1.10.0-beta.rc1~1^2~111^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1650%2Fhead;p=thirdparty%2Fpaperless-ngx.git Runs the pre-commit hooks against the changelog before committing it --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddf23e2533..46417d97e4 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