-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (58 loc) · 1.88 KB
/
misc-pr_to_master.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Misc - Pull Request to master branch
on:
pull_request:
branches:
- master
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, edited, synchronize]
jobs:
# Refs: https://github.com/release-drafter/release-drafter
misc-pr_to_master-labeling:
runs-on: ubuntu-latest
if: >
!contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' )
steps:
- uses: release-drafter/release-drafter@v6
with:
disable-releaser: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
misc-pr_to_master-check-title:
runs-on: ubuntu-latest
# Ignore these cases
# - Out of changelog target
# - Created by "dependabot", "github-actions"
if: >
(
!contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' )
&& !startsWith( github.head_ref, 'dependabot/' )
&& !contains( github.actor, 'github-actions' )
)
steps:
- uses: amannn/[email protected]
with:
types: |
feat
imprv
fix
support
chore
ci
docs
test
requireScope: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
misc-pr_to_master-slack-notification:
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: act10ns/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
# "status" is used to be set notification's color.
# When "status" is "success", "failure", or "canceled", color is green, red, or yellow; otherwise it is #C0C0C0C0.
# see. https://github.com/act10ns/slack/blob/da3191ebe2e67f49b46880b4633f5591a96d1d33/src/slack.ts#L23
status: updated
channel: '#srv'