Skip to content

Commit

Permalink
run some workflows only on a weekly basis
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Apr 26, 2024
1 parent 6a646ac commit 64962e1
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 43 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/R-CMD-check-hard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
# dependency.
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"

name: R-CMD-check-hard

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]

name: R-CMD-check

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-all-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# This workflow helps find such failing examples that need to be modified.
on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]

name: check-all-examples

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/check-link-rot.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"

name: check-link-rot

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/check-random-test-order.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Run tests in random order
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"

name: check-random-test-order

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/check-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"

name: check-readme

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-spelling.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]

name: check-spelling

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-styling.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]

name: check-styling

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/check-test-warnings.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Running tests with options(warn = 2) to fail on test warnings
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"

name: check-test-warnings

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/check-vignette-warnings.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Running tests with options(warn = 2) to fail on test warnings
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"

name: check-vignette-warnings

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/html-5-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"

name: html-5-check

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
pull_request:
branches: [main, master]
branches: [main]

name: lint-changed-files

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]

name: lint

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/pkgdown-no-suggests.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"

name: pkgdown-no-suggests

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]
release:
types: [published]
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
pull_request:
branches: [main, master]
branches: [main]

name: revdepcheck

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test-coverage-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
branches: [main]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"

name: test-coverage-examples

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]

name: test-coverage

Expand Down

0 comments on commit 64962e1

Please sign in to comment.