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
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