-
Notifications
You must be signed in to change notification settings - Fork 113
31 lines (27 loc) · 1 KB
/
release-checks.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
name: Release checks
on:
push:
branches:
- release
pull_request:
branches:
- release
jobs:
Release-Checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: "Get changed files"
id: changed-files
uses: tj-actions/changed-files@v10
- name: "If CHANGELOG.md is not changed, send a Slack notification"
id: slack
if: "!contains(steps.changed-files.outputs.modified_files , 'CHANGELOG.md')"
uses: slackapi/slack-github-action@v1.14.0
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
slack-message: "Hi @Emma, this is your CoVariants bot 🤖. Bip-bop! It looks like you've pushed another release, but did not update the CHANGELOG.md. I thought I'd mention that. Apologies if you did already. In any case, not a big deal! Also, here is an image of a dog. https://placedog.net/500."
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}