-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4180 from Holzhaus/changelog-autoupdater
CI: Trigger automatic update of manual repo if CHANGELOG.md was changed
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |