Skip to content

Commit

Permalink
implement development ci (#6)
Browse files Browse the repository at this point in the history
* create main action.yml

* implement development workflow

* fix yaml format: add double quote to string

* empty commit
  • Loading branch information
okuzawats authored Jul 19, 2024
1 parent 596ef79 commit 632d6cb
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/development.yml
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."
37 changes: 37 additions & 0 deletions action.yml
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

0 comments on commit 632d6cb

Please sign in to comment.