-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
37 lines (35 loc) · 898 Bytes
/
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
name: "Chatwork Task Action"
description: "Create Chatwork Task."
author: "okuzawats"
branding:
icon: "check-square"
color: "red"
inputs:
apiToken:
required: true
description: "Chatwork API token"
roomId:
required: true
description: "Chatroom ID"
userIds:
required: true
description: "User Id to be assign the task. You can specify multiple users, separated by commas(example: 1,3,5)"
body:
required: true
description: "Task body"
runs:
using: "composite"
steps:
- name: "checkout"
uses: "actions/checkout@v4"
- name: "set up ruby"
uses: "ruby/setup-ruby@v1"
- name: "run action"
shell: "sh"
env:
API_TOKEN: "${{ inputs.apiToken }}"
ROOM_ID: "${{ inputs.roomId }}"
USER_IDS: "${{ inputs.userIds }}"
BODY: "${{ inputs.body }}"
run: |
ruby $GITHUB_ACTION_PATH/main.rb