Skip to content

Allows to run GitHub Action schedule in odd or even weeks

Notifications You must be signed in to change notification settings

ePages-de/action-reminder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Allows to run GitHub Action schedule in odd or even weeks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published