-
Notifications
You must be signed in to change notification settings - Fork 30
36 lines (33 loc) · 1.33 KB
/
announce-release.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
31
32
33
34
35
36
# This workflow announces the new release on the TBA Some Gamut Release Slack channel
name: Announce the release on Slack
on:
release:
types: [published]
jobs:
announce-release-on-slack:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.release.body, 'Version bump only for package') }}
steps:
- name: Slackify the release body
id: release_body
uses: LoveToKnow/[email protected]
with:
text: ${{ github.event.release.body }}
- name: Announce changelog on Slack
uses: homeday-de/[email protected]
with:
webhook_url: ${{ secrets.SLACK_RELEASE_BOT_WEBHOOK_URL }}
title: ${{ github.event.release.name }}
body: '${{ steps.release_body.outputs.text }}'
context: Gamut
announce-kit-version-on-slack:
runs-on: ubuntu-latest
if: ${{ contains(github.event.release.body, '@codecademy/gamut-kit') }}
steps:
- name: Announce gamut-kit version on Slack
uses: homeday-de/[email protected]
with:
webhook_url: ${{ secrets.SLACK_RELEASE_BOT_WEBHOOK_URL }}
title: ${{ github.event.release.name }}
body: 'Include this package in your application instead of the individual packages to simplify version management.'
context: gamut-kit