Test a build at 12pm CET

This commit is contained in:
Ben Adrian Sarmiento
2024-06-19 11:51:56 +02:00
parent 8a7dd7bee2
commit 7e54d6c441
2 changed files with 3 additions and 3 deletions

View File

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

View File

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