Skip to content

Commit

Permalink
Merge pull request #4180 from Holzhaus/changelog-autoupdater
Browse files Browse the repository at this point in the history
CI: Trigger automatic update of manual repo if CHANGELOG.md was changed
  • Loading branch information
Holzhaus authored Sep 4, 2021
2 parents 1d247bd + a9c859a commit 41a05ee
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/[email protected]
- 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 41a05ee

Please sign in to comment.