[pre-commit.ci] pre-commit autoupdate #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Changelog | |
on: | |
push: | |
branches: | |
- '*' # all branches | |
- '!main' # exclude main branch | |
jobs: | |
changelog: | |
name: Changelog | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '5.x' | |
- name: Use GitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
id: gitversion | |
- name: Changelog | |
id: changelog | |
uses: nuuday/[email protected] | |
with: | |
next_version: "${{ steps.gitversion.outputs.majorMinorPatch }}" | |
- name: Bump version | |
run: | | |
sed -i "s/\(__version__ = \"\).*\(\"\)/\1$VER\2/g" terraplanfeed/__init__.py | |
env: | |
VER: ${{ steps.gitversion.outputs.majorMinorPatch }} | |
- name: Commit Changelog | |
uses: stefanzweifel/git-auto-commit-action@v4 |