-
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.
* create main action.yml * implement development workflow * fix yaml format: add double quote to string * empty commit
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "development" | ||
|
||
on: | ||
pull_request: | ||
types: [ "opened", "synchronize", "ready_for_review" ] | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
message: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
- uses: "./" | ||
with: | ||
apiToken: "${{ secrets.API_KEY }}" | ||
roomId: "${{ secrets.ROOM_ID }}" | ||
userIds: "${{ secrets.USER_ID }}" | ||
body: "get some milk for me." |
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 |
---|---|---|
@@ -0,0 +1,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 |