Skip to content

Commit 8cde94b

Browse files
augmentmoogiGuy Mograbi
andauthored
Add workflow to trigger changelog-automation on CHANGELOG.md changes (#117)
Co-authored-by: Guy Mograbi <moogi@Guys-MacBook-Pro.local>
1 parent 91172ca commit 8cde94b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Trigger Changelog Automation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'CHANGELOG.md'
9+
10+
jobs:
11+
trigger:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Trigger changelog-automation workflow
15+
run: |
16+
curl -sf -X POST \
17+
-H "Accept: application/vnd.github+json" \
18+
-H "Authorization: token ${{ secrets.CHANGELOG_AUTOMATION_PAT }}" \
19+
-o /dev/null \
20+
https://api.github.com/repos/augmentcode/changelog-automation/actions/workflows/changelog.yml/dispatches \
21+
-d '{"ref":"main"}'

0 commit comments

Comments
 (0)