Skip to content

Commit

Permalink
Fix start date and rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Nov 13, 2024
1 parent f017883 commit 23b8d0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/matrix_dev_sync_reminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch: # manual triggering

env:
FIRST_RUN_DATE: "2024-11-13"
FIRST_SYNC_DATE: "2024-11-2"

jobs:
weekindex:
Expand All @@ -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))
Expand All @@ -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
Expand Down

0 comments on commit 23b8d0b

Please sign in to comment.