From 06c79fa648967fb0c0c187ff1bf7e265d1d026b7 Mon Sep 17 00:00:00 2001 From: Erik Bylund Date: Fri, 1 Nov 2024 15:02:30 +0100 Subject: [PATCH] wip --- .github/workflows/build-with-image.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-with-image.yml b/.github/workflows/build-with-image.yml index f7c20b1b..eab06e62 100644 --- a/.github/workflows/build-with-image.yml +++ b/.github/workflows/build-with-image.yml @@ -43,8 +43,12 @@ jobs: - name: Check if commits in last 24h #if: ${{ github.event_name == 'schedule' }} run: | - _GIT_COMMIT_DATE=$(git log -1 --format=%cd --date=format:%Y%m%dh%H%M%S) + _GIT_COMMIT_DATE=$(git log -1 --format=%cd --date=format:%Y-%m-%d) + COMMIT_DATE=$(date -d _GIT_COMMIT_DATE +%s) + SERVER_DATE=$(date +'%Y-%m-%d') echo "$_GIT_COMMIT_DATE" + echo "$COMMIT_DATE" + echo "$SERVER_DATE" exit 10 - name: Pull unreal image ${{ matrix.UE_IMAGE }}