Skip to content

Commit 7997919

Browse files
author
Cristiano Betta
authored
Add GitHub action that notifies Box developer changelog (#522)
1 parent 1709684 commit 7997919

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/releases.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
# There's really only 1 step, and i
22+
- name: Notify changelog of new release
23+
uses: peter-evans/repository-dispatch@v1
24+
with:
25+
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
26+
repository: box/box-developer-changelog
27+
event-type: new-release-note
28+
client-payload: '{"ref": "${{ github.ref }}", "repository": "${{github.repository}}", "labels": "sdks,python", "repo_display_name": "Box Python SDK"}'

0 commit comments

Comments
 (0)