Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 895 Bytes

README.md

File metadata and controls

31 lines (27 loc) · 895 Bytes

reminder-action

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