format yaml #72
Workflow file for this run
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
name: send message | |
on: | |
pull_request: | |
types: [opened, synchronize, ready_for_review] | |
branches: [main] | |
jobs: | |
message: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set current datetime to env | |
env: | |
TZ: 'Asia/Tokyo' | |
run: | | |
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 }} | |
- uses: ./ | |
with: | |
apiToken: ${{ secrets.API_KEY }} | |
roomId: ${{ secrets.ROOM_ID }} | |
message: "you have to do this task!" | |
messageType: "task" | |
userIdsToAssignTask: ${{ secrets.USER_ID_1 }} |