-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (33 loc) · 977 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: Generate and Commit Changelog
on:
push:
branches:
# FIXME: remove
- changelog
- master
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: 'Generate PR changelog'
uses: heinrichreimer/action-github-changelog-generator@v2.4
with:
issues: false
output: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}
addSections: >
{
"ecospheres": {
"prefix": "**Ecosphères:**",
"labels": ["ecospheres"]
}
}
- name: Commit and push if it changed
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add CHANGELOG.md
git commit -m "Update Changelog [skip ci]" || echo "No changes to commit"
git push origin ${{ github.ref }}