Fix repair condition

This commit is contained in:
Ben Adrian Sarmiento
2024-06-19 13:11:50 +02:00
parent 7e54d6c441
commit bd8c6c9932
8 changed files with 90 additions and 58 deletions

View File

@@ -5,7 +5,7 @@ on:
tags:
- '*'
schedule:
- cron: '0 10 * * *'
- cron: '20 11 * * *'
jobs:
build:
@@ -38,7 +38,7 @@ jobs:
continue-on-error: false
run: |
# 3AM CET
since="$(date -d 'yesterday' +%Y-%m-%d) 10:00:00"
since="$(date -d 'yesterday' +%Y-%m-%d) 11:20:00"
count=$(git rev-list --count --since="$since" --until=now HEAD)
if [ "$count" -gt 0 ]; then
echo "new_commits=true" >> $GITHUB_OUTPUT

View File

@@ -5,7 +5,7 @@ on:
tags:
- '*'
schedule:
- cron: '0 10 * * *'
- cron: '20 11 * * *'
jobs:
build-and-push-image: