-
Notifications
You must be signed in to change notification settings - Fork 686
50 lines (43 loc) · 1.18 KB
/
changelog.yml
File metadata and controls
50 lines (43 loc) · 1.18 KB
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
41
42
43
44
45
46
47
48
49
50
name: Changelog
on:
pull_request:
push:
branches: [ master ]
tags: [ "*" ]
jobs:
changelog:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ssh-key: ${{ secrets.DEPLOYMENT_SSH_KEY }}
fetch-depth: 0
- name: Generate changelog
uses: docker://toolhippie/calens:0.4.0
with:
entrypoint: /bin/sh
args: -c "calens > CHANGELOG.md"
- name: Show diff
run: git diff
- name: Output
run: cat CHANGELOG.md
- name: Publish
if: >
github.event_name == 'push' &&
github.ref == 'refs/heads/master' &&
!startsWith(github.ref, 'refs/tags/') &&
!startsWith(github.ref, 'refs/pull/')
run: |
git config user.name "ownClouders"
git config user.email "devops@owncloud.com"
git add CHANGELOG.md
if git diff --staged --quiet; then
echo "No changes to commit"
exit 0
fi
git commit -m "Automated changelog update [skip ci]"
git push origin master