Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #339 from atc0005/workflow-scheduling-changes
Browse files Browse the repository at this point in the history
Rework workflow scheduling
  • Loading branch information
atc0005 authored Feb 16, 2023
2 parents de2ad85 + 2b8e4d5 commit e335e25
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/project-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,10 @@
name: Project Analysis

on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]

# `synchronized` seems to equate to pushing new commits to a linked branch
# (whether force-pushed or not)
types: [opened, synchronize]
schedule:
# ┌───────────── 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)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: "19 2 * * 0"

jobs:
lint:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/scheduled-monthly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See LICENSE file in this repo for license details.

name: Scheduled Monthly

on:
schedule:
# ┌───────────── 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)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: "30 4 1 * *"

jobs:
lint:
name: Monthly Tasks
uses: atc0005/shared-project-resources/.github/workflows/scheduled-monthly.yml@master
21 changes: 21 additions & 0 deletions .github/workflows/scheduled-weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See LICENSE file in this repo for license details.

name: Scheduled Weekly

on:
schedule:
# ┌───────────── 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)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: "30 4 * * 0"

jobs:
lint:
name: Weekly Tasks
uses: atc0005/shared-project-resources/.github/workflows/scheduled-weekly.yml@master

0 comments on commit e335e25

Please sign in to comment.