diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 000000000000..c2f0ac379474 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,27 @@ +name: Changelog + +on: + push: + branches: + - "main" + - "[0-9].[0-9]" + paths: + - "CHANGELOG.md" + +jobs: + trigger-changelog-update: + name: Trigger Changelog update on manual repository + runs-on: ubuntu-latest + steps: + - name: Get current branch name + uses: nelonoel/branch-name@v1.0.1 + - name: Start workflow run on manual repository + uses: peter-evans/repository-dispatch@v1 + if: env.MANUAL_REPO_TOKEN != null + with: + token: ${{ env.MANUAL_REPO_TOKEN }} + repository: mixxxdj/manual + event-type: update-changelog + client-payload: '{"branch": "${{ env.BRANCH_NAME }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' + env: + REPO_TOKEN: ${{ secrets.MANUAL_REPO_TOKEN }}