08/19/2021 17:23 | Category: git

Tags: githubgithub_actionsgit

github actions workflow and scheduling

Working with GitHub actions more seriously recently had lead me to a few conclusions:

  1. Not all repos need to have an "on push" or "on pull" action.
  2. Scheduling for submodules is a great way to keep parent repos updated.
    1. Useful dependent upon whether or not the submodules have breaking dependencies.
  3. All workflows should have a manual execution option.
    1. This is good outside solely testing.

Example GitHub Action snippet:


name: Example Action
on:
  schedule:
  # Run daily at midnight
  - cron: '0 0 * * *'

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch: