Coding365 Reminder #368
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: Coding365 Reminder | |
on: | |
schedule: | |
- cron: '30 23 * * *' | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: 'Reason to run this command' | |
required: true | |
default: 'Running tests' | |
jobs: | |
has-commited: | |
name: Has a commit been pushed in the past 24 hours | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "America/Toronto" | |
- run: | | |
if git log --since='12am'>/dev/null 2>&1; then echo 'Commit found, congrats! :)'; exit 0; else echo 'No commit found. :( You better hurry up and get it done.'; exit 130; fi | |
reason: | |
name: Reason for Manual Run | |
if: github.event.inputs.reason | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "${{github.event.inputs.reason}}" |