Skip to content

Commit

Permalink
update job scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdi-robbani committed Feb 7, 2024
1 parent 57d6809 commit a8e4d27
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/bad-link-reporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,26 @@ env:
# Optional file containing a list of URLs to ignore, one per line:
ignore: .github/workflows/ignored-urls.txt

# on:
# schedule: # Cron syntax is: "min hr day-of-month month day-of-week"
# - cron: 00 04 * * 1
# push:
# paths: ['**.md']
# workflow_dispatch:
# NOTE: Currently running on every push, change to schedule after the sprint
on:
schedule: # Cron syntax is: "min hr day-of-month month day-of-week"
- cron: 00 04 * * 1
# Runs on pushes targeting the default branch
push:
paths: ['**.md']
branches: ["main"]

# Run on pull request
pull_request:
branches: ["main"]

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


# The rest of this file should be left as-is ─────────────────────────

run-name: Test links in Markdown files
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/lint-md.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Lint all markdown files
name: Lint Markdown file

on: [push, pull_request]
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Run on pull request
pull_request:
branches: ["main"]

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

jobs:
# Lint Markdown file job
Expand Down

0 comments on commit a8e4d27

Please sign in to comment.