Skip to content

Commit 8ae5ced

Browse files
authored
chore: start changelog PR from head, add manual trigger and build nightly (#580)
* chore: start changelog PR from head and allow to run manually, build nightly * fix comment
1 parent 30624c5 commit 8ae5ced

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/rebuild-changelog.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: Rebuild changelog
22

33
on:
4-
# Once a week or on release published
4+
# manually
5+
workflow_dispatch:
6+
7+
# on release published
58
release:
69
types: [published]
10+
11+
# nightly
712
schedule:
8-
- cron: "0 3 * * 0"
13+
- cron: "0 3 * * *"
914

1015
jobs:
1116
rebuild-changelog:
@@ -14,7 +19,14 @@ jobs:
1419
steps:
1520
- uses: actions/checkout@v3
1621
with:
17-
fetch-depth: 0
22+
# don't checkout a detached HEAD, is important to have a real base
23+
# branch when creating a PR
24+
ref: ${{ github.head_ref }}
25+
26+
# this is important so git log can pick up on
27+
# the whole history to generate the CHANGELOG
28+
fetch-depth: '0'
29+
1830
- name: Set up Git
1931
run: |
2032
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)