My Workflow
Name: FraserTooth/go-to-sleep
Description: This Github Action will use the timestamps in commit logs to figure out whether someone is doing work past their bed time...and tell them off!
Being Used: On itself...🤣
Github: Link
Submission Category:
Wacky Wildcards (I think...)
Yaml File or Link to Code
FraserTooth / go-to-sleep
Stop coding and go to sleep!
The Github Go-To-Sleep-a-Tron Action
Stop coding and go to sleep!
(Example Commit with Message)[https://github.com/FraserTooth/go-to-sleep-action/commit/a46d6fd23defa2b5b9c974cebbc843eeb01a5ff9]
Inputs
GITHUB_TOKEN
Required
Just put ${{ secrets.GITHUB_TOKEN }}
and it should work fine.
custom_mesage
Optional
Put your custom message as a HTML formatted string:
e.g. custom_message: "Oh dear, its very late where you are.\nWe appreciate your hard work but maybe you should go to bed."
Default: "Its quite late, maybe you should go to sleep!"
timezone
Required for any events other than commits (push)
Enter your team's timezone in the ISO format (+/-)hh:mm
:
e.g. timezone: "+09:00"
How to use
If you do not have any Github actions already set up in your repo, start by creating a .github/workflows folder.
Inside your workflows folder, create a new .yml file, for example main.yml
and copy the following lines:
on
[
push,
pull_request, # Slightly Supported
pull_request_review, # Not Supported
pull_request_review_comment, # Not Supported
issues,
…
Top comments (0)