Skip to content

Coding365 Reminder #442

Coding365 Reminder

Coding365 Reminder #442

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}}"