-
Notifications
You must be signed in to change notification settings - Fork 25
36 lines (30 loc) · 1.04 KB
/
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
36
name: Changelog
on:
push:
branches:
- master
jobs:
changelog:
name: Generate Changelog
runs-on: ubuntu-latest
continue-on-error: true
if: github.actor != 'github-actions[bot]' || github.event.pusher.email != 'github-actions[bot]@users.noreply.github.com'
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PAT }}
fetch-depth: 0
- name: Setup go
uses: actions/setup-go@v3
- name: Generate Changelog
run: go run github.com/git-chglog/git-chglog/cmd/git-chglog@latest --output CHANGELOG.md
- name: Commit Changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "chore(chglog): update changelog." -a || true
- name: Push Changes
uses: ad-m/github-push-action@77c5b412c50b723d2a4fbc6d71fb5723bcd439aa
with:
github_token: ${{ secrets.GH_PAT }}
branch: ${{ github.ref }}