-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (34 loc) · 999 Bytes
/
changelog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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