forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchangelog-generator.yml
More file actions
34 lines (29 loc) 路 853 Bytes
/
Copy pathchangelog-generator.yml
File metadata and controls
34 lines (29 loc) 路 853 Bytes
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
name: Changelog Generator
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
pull-requests: read
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate changelog
run: bash infrastructure/scripts/generate-changelog.sh
- name: Commit updated changelog
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
if git diff --quiet CHANGELOG.md; then
echo "No changelog changes to commit."
exit 0
fi
git add CHANGELOG.md
git commit -m "chore(changelog): update changelog for release"
git push