Skip to content

Commit c4812db

Browse files
authored
chore: Added notify-changelog workflow (#1147)
1 parent 21de21a commit c4812db

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# A GitHub action that notifies the developer
2+
# changelog repository of any new releases.
3+
4+
name: Notify changelog
5+
6+
on:
7+
# Only trigger for a full release,
8+
# ignoring pre-releases and drafts
9+
release:
10+
types:
11+
- released
12+
13+
jobs:
14+
notify:
15+
# This job can run on the latest Ubuntu
16+
# and it should not take more than 3 minutes
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 3
19+
20+
steps:
21+
- name: Notify changelog of new release
22+
uses: peter-evans/repository-dispatch@v1
23+
with:
24+
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
25+
repository: box/box-developer-changelog
26+
event-type: new-release-note
27+
client-payload: '{"ref": "${{ github.ref }}", "repository": "${{github.repository}}", "labels": "sdks,python", "repo_display_name": "Box Python SDK"}'

0 commit comments

Comments
 (0)