forked from box/box-ui-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 1007 Bytes
/
releases.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
# A GitHub action that notifies the developer
# changelog repository of any new releases.
name: Notify changelog
on:
# Only trigger for a full release,
# ignoring pre-releases and drafts
release:
types:
- released
jobs:
notify:
# This job can run on the latest Ubuntu
# and it should not take more than 3 minutes
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
# There's really only 1 step, and it sends a dispatch notification
# to the box/box-developer-changelog repository, letting it
# import the latest release notes.
- name: Notify changelog of new release
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DISPATCH_ACCESS_TOKEN }}
repository: box/box-developer-changelog
event-type: new-release-note
client-payload: '{"ref": "${{ github.ref }}", "repository": "${{github.repository}}", "labels": "frontend,ui-elements", "repo_display_name": "Box UI Elements"}'