Skip to content

Commit

Permalink
CI: Trigger automatic update of manual repo if CHANGELOG.md was changed
Browse files Browse the repository at this point in the history
See corresponding PR mixxxdj/manual#422 for details.

This requires a Personal Acess Token (PAT) with the `public_repo` scope
in the repository secrets (named `MIXXXBOT_CHANGELOG_AUTOUPDATER_PAT`).
  • Loading branch information
Holzhaus committed Aug 16, 2021
1 parent 05016f8 commit a9c859a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -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.MIXXXBOT_TOKEN != null
with:
token: ${{ env.MIXXXBOT_TOKEN }}
repository: mixxxdj/manual
event-type: update-changelog
client-payload: '{"branch": "${{ env.BRANCH_NAME }}", "ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
env:
MIXXXBOT_TOKEN: ${{ secrets.MIXXXBOT_CHANGELOG_AUTOUPDATER_PAT }}

0 comments on commit a9c859a

Please sign in to comment.