1
1
Este repositório foi arquivado em 2021-05-10. Você pode visualizar arquivos e cloná-lo, mas não pode fazer push, abrir issues ou pull requests.
docker-tileboard-OUTDATED/check-master-for-changes.sh

13 linhas
506 B
Bash
Original Visão normal Histórico

#!/usr/bin/env bash
commitdate=$(curl -sL "https://api.github.com/repos/resoai/TileBoard/commits/master" | jq -r ".commit.author.date")
commitdays=$(( ( $(date --utc +%s) - $(date --utc -d $commitdate +%s) ) / 86400 ))
echo "Last commit was $commitdays days ago."
if [ $commitdays -lt 2 ] ; then
echo "There ARE recent changes in the repository."
else
echo "There are NO recent changes in the repository."
echo "Aborting pipeline."
exit 78 # drone.io exit code to stop but success the pipeline
fi