-
Notifications
You must be signed in to change notification settings - Fork 31
41 lines (37 loc) · 1.26 KB
/
changelog.yaml
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
37
38
39
40
41
name: Changelog
on:
pull_request:
branches:
- master
- main
jobs:
check-and-comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check Releases.rst Updated
run: |
git fetch origin master:master
updated_files=$(git diff master -- docs/source/releases.rst)
if [[ -z $updated_files ]]
then
exit 1
fi
- name: Thank you comment
uses: thollander/actions-comment-pull-request@v1
with:
comment_includes: "changelog"
message: |
Thank you for the pull request! :pray:
If CI reports any errors please address them.
If you believe the errors are unrelated to your PR, please state why.
This will make it easier for the maintainers to assess your PR :)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Comment PR
if: ${{ failure() }}
uses: thollander/actions-comment-pull-request@v1
with:
comment_includes: "changelog" # To avoid creating additional comments
message: |
Please include the change for this PR in the changelog (`docs/source/releases.rst`).
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}