generated from actions/hello-world-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add some empty line * fix some format * fix some format * fix some format * fix some format
- Loading branch information
Showing
1 changed file
with
30 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,48 @@ | ||
name: 'Chatwork Messaging Action' | ||
description: 'Send message to Chatwork.' | ||
author: 'okuzawats' | ||
name: "Chatwork Messaging Action" | ||
description: "Send message to Chatwork." | ||
author: "okuzawats" | ||
branding: | ||
icon: 'message-square' | ||
color: 'red' | ||
icon: "message-square" | ||
color: "red" | ||
|
||
inputs: | ||
apiToken: | ||
required: true | ||
description: 'Chatwork API token' | ||
description: "Chatwork API token" | ||
roomId: | ||
required: true | ||
description: 'Chatroom ID' | ||
description: "Chatroom ID" | ||
messageType: | ||
description: 'Message type to send. default is message.' | ||
type: choice | ||
default: 'message' | ||
description: "Message type to send. default is message." | ||
type: "choice" | ||
default: "message" | ||
required: false | ||
options: | ||
- message | ||
- task | ||
- "message" | ||
- "task" | ||
message: | ||
required: true | ||
description: 'Message to send' | ||
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' | ||
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' | ||
using: "composite" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: "checkout" | ||
uses: "actions/checkout@v4" | ||
with: | ||
fetch-depth: 0 | ||
- name: set up ruby | ||
uses: ruby/setup-ruby@v1 | ||
- run: ruby $GITHUB_ACTION_PATH/main.rb | ||
shell: sh | ||
- 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 }} | ||
API_TOKEN: "${{ inputs.apiToken }}" | ||
ROOM_ID: "${{ inputs.roomId }}" | ||
MESSAGE: "${{ inputs.message }}" | ||
MESSAGE_TYPE: "${{ inputs.messageType }}" | ||
USER_IDS_TO_ASSIGN_TASK: "${{ inputs.userIdsToAssignTask }}" |