Skip to content

fix string to quoted with double-quote (#46) #53

fix string to quoted with double-quote (#46)

fix string to quoted with double-quote (#46) #53

Workflow file for this run

name: "example"
on:
push:
branches:
- "main"
jobs:
message:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: "set current datetime"
env:
TZ: "Asia/Tokyo"
# do not remove the space after `date +`. you need this.
run: |
echo "CURRENT_DATETIME=$(date +"%Y-%m-%d %H:%M:%S")" >> "$GITHUB_ENV"
- name: "set arguments"
id: "arguments"
run: |
echo "MESSAGE=[info][title](beer)what time is it now?[/title]it is ${{ env.CURRENT_DATETIME }} now.[/info]" >> "$GITHUB_ENV"
- uses: "okuzawats/chatwork-messaging-action@v1.2"
with:
apiToken: "${{ secrets.API_KEY }}"
roomId: "${{ secrets.ROOM_ID }}"
message: "${{ env.MESSAGE }}"