File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,12 +22,14 @@ jobs:
2222 run : |
2323 DATEUTC=$(curl -sL https://api.github.com/repos/flamewing/mdcomp/commits | jq -r '[.[]][0]' | jq -r '.commit.committer.date')
2424 TIMESTAMP=$(date --utc -d "$DATEUTC" +%s)
25- DAYS=$(( ($(date --utc +%s) - $TIMESTAMP) / 86400 ))
25+ DAYS=$(( ($(date --utc -d "0:00" +%s) - $TIMESTAMP) / 86400 ))
2626 if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
2727 echo repo_alive=true >> $GITHUB_OUTPUT
28+ echo event is workflow_dispatch. Force building snapshot not doing activity check
2829 else
2930 if [ $DAYS -gt 0 ]; then
3031 echo repo_alive=false >> $GITHUB_OUTPUT
32+ echo "No activity in 24 hours before midnight UTC not running Coverity. Last activity at $DATEUTC."
3133 else
3234 echo repo_alive=true >> $GITHUB_OUTPUT
3335 fi
You can’t perform that action at this time.
0 commit comments