Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Trigger automatic update of manual repo if CHANGELOG.md was changed #4180

Merged
merged 1 commit into from
Sep 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}