Skip to content

Commit

Permalink
Add current time to Discord message
Browse files Browse the repository at this point in the history
  • Loading branch information
k-taro56 committed Mar 27, 2024
1 parent 452b295 commit 4f4fea8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/score.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ jobs:
calculate-score:
runs-on: ubuntu-latest
steps:
- name: Get current time
id: current-time
run: echo "::set-output name=time::$(date +'%Y-%m-%dT%H:%M:%SZ')"

- uses: actions/checkout@v4

- name: Set up JDK 17
Expand Down Expand Up @@ -41,7 +45,7 @@ jobs:
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
message: "Result: ${{ env.result }} by @${{ github.actor }}"
message: "Result: ${{ env.result }} by @${{ github.actor }} at ${{ steps.current-time.outputs.time }}"
file: "question/img/except.png,app/build/outputs/roborazzi/com.github.nidroid.uiperfectcopycontesttest.ExampleUnitTest.yourAnswerTest.png"

- name: Upload screenshot
Expand Down

0 comments on commit 4f4fea8

Please sign in to comment.