Allows to run GitHub Action schedule in odd or even weeks
name: Example reminder
on:
schedule:
- cron: '* */12 */15 * *'
workflow_dispatch:
jobs:
reminder:
runs-on: ubuntu-latest
steps:
- name: Evaluate week type
uses: ePages-de/reminder-action@master
id: week_filter
with:
valid_week_type: even
- name: Trigger reminder
if: ${{ steps.week_filter.outputs.should_skip == 'no' }}
run: echo "Triggering..."
This job sends regular Mattermost notifications, based on the cron schedule. The syntax for the cron schedule uses the syntax which you might already know from the Unix cron jobs. The following links might be useful to craft the schedule:
Also see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows