forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 902 Bytes
/
changelog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Changelog
on:
push:
branches:
- "main"
- "[0-9].[0-9]"
paths:
- "CHANGELOG.md"
permissions: {}
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@v3
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 }}