-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
67 lines (62 loc) · 1.72 KB
/
action.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
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: "Release Menu"
description: "Let you know what is contained in the release PR by leaving a comment"
author: "noraworld"
branding:
icon: file-text
color: yellow
inputs:
head:
description: "A development branch name"
default: develop
required: true
base:
description: "A production branch name"
default: main
required: true
checkbox:
description: "Whether a comment includes checkboxes"
default: true
required: true
title:
description: "Whether a comment includes titles"
default: false
required: true
author:
description: "Whether a comment includes author names"
default: true
required: true
slack_token:
description: "A Slack bot token"
default: ""
required: false
slack_channel:
description: "A Slack channel ID where you want to post a message"
default: ""
required: false
mode:
description: "One of merged, all, or optimized"
default: "merged"
required: true
runs:
using: "composite"
steps:
- name: Enable Git operation
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Retrieve PRs and leave a comment
run: ${{ github.action_path }}/main
shell: bash
env:
REPOSITORY: ${{ github.repository }}
PR: ${{ github.event.number }}
GITHUB_TOKEN: ${{ github.token }}
HEAD: ${{ inputs.head }}
BASE: ${{ inputs.base }}
CHECKBOX: ${{ inputs.checkbox }}
TITLE: ${{ inputs.title }}
AUTHOR: ${{ inputs.author }}
SLACK_TOKEN: ${{ inputs.slack_token }}
SLACK_CHANNEL: ${{ inputs.slack_channel }}
MODE: ${{ inputs.mode }}
DEBUG: false