Skip to content

Commit

Permalink
Merge pull request #44 from FreifunkMD/revert-reminder
Browse files Browse the repository at this point in the history
Revert changes to the reminder workflow
  • Loading branch information
24367dfa committed Dec 1, 2023
2 parents d9fef3a + c61c77b commit 3b204ba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/meeting-reminder.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Send out reminder about monthly meeting

on:
# Be careful when changing the schedule:
# CRON uses _or_ when day-of-month and day-of-week are provided.
schedule:
- cron: '0 1 8-14 * THU'
- cron: '1 0 * * THU'
workflow_dispatch:


Expand All @@ -15,6 +17,12 @@ jobs:
run: |
next_date=$(date -d "next Monday" "+%d.%m.")
echo "next_date=$next_date" >> "$GITHUB_OUTPUT"
next_date_day=$(date -d "next Monday" "+%d")
if [[ $next_date_day < 15 ]] || [[ $next_date_day > 21 ]];
then
echo "::notice::Wrong week, skip sending reminder."
exit 1
fi
outputs:
next_date: ${{ steps.date.outputs.next_date }}

Expand Down

0 comments on commit 3b204ba

Please sign in to comment.