diff --git a/.github/workflows/update_precommit_hooks.yml b/.github/workflows/update_precommit_hooks.yml index a0cf4bf..af4ce12 100644 --- a/.github/workflows/update_precommit_hooks.yml +++ b/.github/workflows/update_precommit_hooks.yml @@ -1,22 +1,20 @@ --- name: Update precommit hooks - on: - -# Uses the cron schedule for github actions -# -# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events -# -# ┌───────────── minute (0 - 59) -# │ ┌───────────── hour (0 - 23) -# │ │ ┌───────────── day of the month (1 - 31) -# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) -# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) -# │ │ │ │ │ -# │ │ │ │ │ -# │ │ │ │ │ -# * * * * * + # Uses the cron schedule for github actions + # + # https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events + # + # ┌───────────── minute (0 - 59) + # │ ┌───────────── hour (0 - 23) + # │ │ ┌───────────── day of the month (1 - 31) + # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) + # │ │ │ │ │ + # │ │ │ │ │ + # │ │ │ │ │ + # * * * * * schedule: - cron: 0 0 * * 1 # every monday @@ -25,9 +23,8 @@ on: jobs: update_precommit_hooks: - # only run on upstream repo - if: github.repository_owner == 'SIMEXP' + if: github.repository == 'neurodatascience/QLS-course-materials' runs-on: ubuntu-latest steps: