diff --git a/.github/workflows/matrix_dev_sync_reminder.yml b/.github/workflows/matrix_dev_sync_reminder.yml index c3cfb0e..b05e7f6 100644 --- a/.github/workflows/matrix_dev_sync_reminder.yml +++ b/.github/workflows/matrix_dev_sync_reminder.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: # manual triggering env: - FIRST_RUN_DATE: "2024-11-13" + FIRST_SYNC_DATE: "2024-11-2" jobs: weekindex: @@ -20,7 +20,7 @@ jobs: id: calculate run: | current_date=$(date +%Y-%m-%d) - start=$(date -d "${{ env.FIRST_RUN_DATE }}" +%s) + start=$(date -d "${{ env.FIRST_SYNC_DATE }}" +%s) end=$(date -d "$current_date" +%s) weekdiff=$(((end - start) / 60 / 60 / 24 / 7)) weekindex=$((weekdiff % 2)) @@ -40,7 +40,7 @@ jobs: echo "next_next_bi_weekly_date=$next_next_bi_weekly_date" >> "$GITHUB_OUTPUT" - echo "FIRST_RUN_DATE: ${{ env.FIRST_RUN_DATE }}" >> $GITHUB_STEP_SUMMARY + echo "FIRST_SYNC_DATE: ${{ env.FIRST_SYNC_DATE }}" >> $GITHUB_STEP_SUMMARY echo "current_date: $current_date" >> $GITHUB_STEP_SUMMARY echo "weekdiff: $weekdiff" >> $GITHUB_STEP_SUMMARY echo "weekindex: $weekindex" >> $GITHUB_STEP_SUMMARY