We are using github to backup configuration files automatically from our servers.
To check that the cron job is working correctly is there a way to have an action failing if there is a no commit for the last 24 hours ?
We are using github to backup configuration files automatically from our servers.
To check that the cron job is working correctly is there a way to have an action failing if there is a no commit for the last 24 hours ?
You can use action with below structure
git log -1 --format=%cd //Outputs: time of last commitgit log -1 --format=%cr //Output: X days ago