Skip to content

Commit

Permalink
chore: start changelog PR from head, add manual trigger and build nig…
Browse files Browse the repository at this point in the history
…htly (#580)

* chore: start changelog PR from head and allow to run manually, build nightly

* fix comment
  • Loading branch information
mcasimir authored Aug 16, 2023
1 parent 30624c5 commit 8ae5ced
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/rebuild-changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Rebuild changelog

on:
# Once a week or on release published
# manually
workflow_dispatch:

# on release published
release:
types: [published]

# nightly
schedule:
- cron: "0 3 * * 0"
- cron: "0 3 * * *"

jobs:
rebuild-changelog:
Expand All @@ -14,7 +19,14 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# don't checkout a detached HEAD, is important to have a real base
# branch when creating a PR
ref: ${{ github.head_ref }}

# this is important so git log can pick up on
# the whole history to generate the CHANGELOG
fetch-depth: '0'

- name: Set up Git
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down

0 comments on commit 8ae5ced

Please sign in to comment.