generated from actions/hello-world-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
48 lines (46 loc) · 1.21 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
name: "Chatwork Messaging Action"
description: "Send message to Chatwork."
author: "okuzawats"
branding:
icon: "message-square"
color: "red"
inputs:
apiToken:
required: true
description: "Chatwork API token"
roomId:
required: true
description: "Chatroom ID"
messageType:
description: "Message type to send. default is message."
type: "choice"
default: "message"
required: false
options:
- "message"
- "task"
message:
required: true
description: "Message to send"
userIdsToAssignTask:
required: false
description: "User Id to be assigned to the task. Or you can specify multiple users, separated by commas. example 1,3,5"
runs:
using: "composite"
steps:
- name: "checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0
- name: "set up ruby"
uses: "ruby/setup-ruby@v1"
- name: "run action"
run: |
ruby $GITHUB_ACTION_PATH/main.rb
shell: "sh"
env:
API_TOKEN: "${{ inputs.apiToken }}"
ROOM_ID: "${{ inputs.roomId }}"
MESSAGE: "${{ inputs.message }}"
MESSAGE_TYPE: "${{ inputs.messageType }}"
USER_IDS_TO_ASSIGN_TASK: "${{ inputs.userIdsToAssignTask }}"