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 }}