From 508d607c2116690011776c12fb7234d46e18f5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Fri, 30 Jun 2023 08:47:40 +0200 Subject: [PATCH] CI: Update changelog to match repo --- .github/workflows/changelog.yml | 36 +++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 717ae918b2..040eb82eb6 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -26,8 +26,12 @@ jobs: filters: | rtic: - 'rtic/**' - rtic-channel: - - 'rtic-channel/**' + rtic-common: + - 'rtic-common/**' + rtic-macros: + - 'rtic-macros/**' + rtic-sync: + - 'rtic-sync/**' rtic-time: - 'rtic-time/**' rtic-monotonics: @@ -43,13 +47,33 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Check that changelog updated (rtic-channel) - if: steps.changes.outputs.rtic-channel == 'true' + - name: Check that changelog updated (rtic-common) + if: steps.changes.outputs.rtic-common == 'true' uses: dangoslen/changelog-enforcer@v3 with: - changeLogPath: ./rtic-channel/CHANGELOG.md + changeLogPath: ./rtic-common/CHANGELOG.md skipLabels: 'needs-changelog, skip-changelog' - missingUpdateErrorMessage: 'Please add a changelog entry in the rtic-channel/CHANGELOG.md file.' + missingUpdateErrorMessage: 'Please add a changelog entry in the rtic-common/CHANGELOG.md file.' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check that changelog updated (rtic-macros) + if: steps.changes.outputs.rtic-macros == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: ./rtic-macros/CHANGELOG.md + skipLabels: 'needs-changelog, skip-changelog' + missingUpdateErrorMessage: 'Please add a changelog entry in the rtic-macros/CHANGELOG.md file.' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check that changelog updated (rtic-sync) + if: steps.changes.outputs.rtic-sync == 'true' + uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: ./rtic-sync/CHANGELOG.md + skipLabels: 'needs-changelog, skip-changelog' + missingUpdateErrorMessage: 'Please add a changelog entry in the rtic-sync/CHANGELOG.md file.' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}