From 0a77123de5875f31ea73f69c7e6a20af009c1d8c Mon Sep 17 00:00:00 2001 From: Maurizio Casimirri Date: Wed, 16 Aug 2023 09:11:58 +0200 Subject: [PATCH 1/2] chore: start changelog PR from head and allow to run manually, build nightly --- .github/workflows/rebuild-changelog.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rebuild-changelog.yaml b/.github/workflows/rebuild-changelog.yaml index a2f8eafd7..474bfc0e2 100644 --- a/.github/workflows/rebuild-changelog.yaml +++ b/.github/workflows/rebuild-changelog.yaml @@ -1,11 +1,16 @@ name: Rebuild changelog on: - # Once a week or on release published + # manually + workflow_dispatch: + + # on release published release: types: [published] + + # once a week schedule: - - cron: "0 3 * * 0" + - cron: "0 3 * * *" jobs: rebuild-changelog: @@ -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" From f79683ddb50fa5e5e314bdbe386d4e755d9c3999 Mon Sep 17 00:00:00 2001 From: Maurizio Casimirri Date: Wed, 16 Aug 2023 09:12:19 +0200 Subject: [PATCH 2/2] fix comment --- .github/workflows/rebuild-changelog.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rebuild-changelog.yaml b/.github/workflows/rebuild-changelog.yaml index 474bfc0e2..0815c83de 100644 --- a/.github/workflows/rebuild-changelog.yaml +++ b/.github/workflows/rebuild-changelog.yaml @@ -8,7 +8,7 @@ on: release: types: [published] - # once a week + # nightly schedule: - cron: "0 3 * * *"