Skip to content

Commit 26cda9c

Browse files
committed
update
1 parent c036cfa commit 26cda9c

File tree

2 files changed

+39
-22
lines changed

2 files changed

+39
-22
lines changed

.github/workflows/auto-changelog.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Update Changelog
2+
3+
on:
4+
# release:
5+
# types: [published]
6+
push:
7+
branches:
8+
- dev
9+
# paths:
10+
# - "CHANGELOG.md"
11+
12+
jobs:
13+
update-changelog:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0 # fetch complete history so auto-changelog can see it
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: '14'
26+
27+
- name: Install auto-changelog
28+
run: npm install -g auto-changelog
29+
30+
- name: Generate changelog
31+
run: auto-changelog
32+
33+
- name: Commit and push if it changed
34+
run: |
35+
git diff
36+
git config --global user.email "actions@github.com"
37+
git config --global user.name "GitHub Action"
38+
git commit -am "Update Changelog" || exit 0
39+
git push

.github/workflows/changelog.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)