-
-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (37 loc) · 1.11 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
37
38
39
40
name: Changelog Generator
# Controls when the action will run. Triggers the workflow on push or pull request events
on:
release:
types:
- published
# This ensures that previous jobs for the workflow are canceled when the ref is
# updated.
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: "Changelog Generator"
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.ref_protected != 'true'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: "Generate changelog"
id: changelog
uses: charmixer/[email protected]
with:
token: ${{ secrets.GIT_TOKEN }}
- name: Commit and push to dev
uses: EndBug/add-and-commit@v9
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
add: "CHANGELOG.md"
message: "[skip ci] Updated CHANGELOG.md"
new_branch: dev
push: origin dev --set-upstream --force
committer_name: GitHub Actions
committer_email: [email protected]
default_author: github_actions