Skip to content

Commit

Permalink
Merge pull request #80 from rabbitfund/feature/recordGithubActionTime
Browse files Browse the repository at this point in the history
feat: 紀錄 awake 執行的時間點
  • Loading branch information
CK642509 committed Jun 17, 2023
2 parents 870fd37 + 7e7049b commit 8caf5de
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/awake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,18 @@ jobs:
steps:
- uses: mikeesto/heroku-awake@1.0.0
with:
URL: "https://rabbitfund-backend.onrender.com"
URL: "https://rabbitfund-backend.onrender.com"
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYY-MMDDTHH:MM:SS
utcOffset: "+08:00"
- name: Use current time
env:
TIME: "${{ steps.current-time.outputs.time }}"
# R_TIME: "${{ steps.current-time.outputs.readableTime }}"
F_TIME: "${{ steps.current-time.outputs.formattedTime }}"
# YEAR: "${{ steps.current-time.outputs.year }}"
# DAY: "${{ steps.current-time.outputs.day }}"
run: echo $F_TIME

0 comments on commit 8caf5de

Please sign in to comment.