Skip to content

Commit

Permalink
format yaml (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
okuzawats authored Jul 1, 2024
1 parent e11b92d commit dd69160
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 30 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
name: send message
name: "development"

on:
pull_request:
types: [opened, synchronize, ready_for_review]
branches: [main]
types: [ "opened", "synchronize", "ready_for_review" ]
branches: [ "main" ]

jobs:
message:
runs-on: ubuntu-latest
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: set current datetime to env
- uses: "actions/checkout@v4"
- name: "set current datetime"
env:
TZ: 'Asia/Tokyo'
TZ: "Asia/Tokyo"
run: |
echo "CURRENT_DATETIME=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: set arguments
id: arguments
echo "CURRENT_DATETIME=$(date + "%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
- name: "set arguments"
id: "arguments"
run: |
echo '::set-output name=message::"[info][title](beer)what time is it now?[/title]it is ${{ env.CURRENT_DATETIME }} now.[/info]"'
- uses: ./
with:
apiToken: ${{ secrets.API_KEY }}
roomId: ${{ secrets.ROOM_ID }}
message: ${{ steps.arguments.outputs.message }}
apiToken: "${{ secrets.API_KEY }}"
roomId: "${{ secrets.ROOM_ID }}"
message: "${{ steps.arguments.outputs.message }}"
- uses: ./
with:
apiToken: ${{ secrets.API_KEY }}
roomId: ${{ secrets.ROOM_ID }}
message: "you have to do this task!"
apiToken: "${{ secrets.API_KEY }}"
roomId: "${{ secrets.ROOM_ID }}"
message: "this is your task"
messageType: "task"
userIdsToAssignTask: ${{ secrets.USER_ID_1 }}
userIdsToAssignTask: "${{ secrets.USER_ID_1 }}"
29 changes: 16 additions & 13 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
name: send message
name: "example"

on:
push:
branches: [main]
branches:
- "main"

jobs:
message:
runs-on: ubuntu-latest
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: set current datetime to env
- uses: "actions/checkout@v4"
- name: "set current datetime"
env:
TZ: 'Asia/Tokyo'
TZ: "Asia/Tokyo"
run: |
echo "CURRENT_DATETIME=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: set arguments
id: arguments
echo "CURRENT_DATETIME=$(date + "%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
- name: "set arguments"
id: "arguments"
run: |
echo '::set-output name=message::"[info][title](beer)what time is it now?[/title]it is ${{ env.CURRENT_DATETIME }} now.[/info]"'
- uses: okuzawats/chatwork-messaging-action@v1.1
- uses: "okuzawats/chatwork-messaging-action@v1.1"
with:
apiToken: ${{ secrets.API_KEY }}
roomId: ${{ secrets.ROOM_ID }}
message: ${{ steps.arguments.outputs.message }}
apiToken: "${{ secrets.API_KEY }}"
roomId: "${{ secrets.ROOM_ID }}"
message: "${{ steps.arguments.outputs.message }}"

0 comments on commit dd69160

Please sign in to comment.