mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 21:30:35 +00:00
Don't run jobs that aren't triggered on pull request on forks. Forks aren't likely to need these jobs, and theyre more likely to fail there. Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
29 lines
768 B
YAML
29 lines
768 B
YAML
---
|
|
name: Periodic
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * 0"
|
|
|
|
jobs:
|
|
markdown-link-check-periodic:
|
|
name: Markdown Links (all files)
|
|
if: github.repository_owner == 'submariner-io'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run markdown-link-check
|
|
uses: gaurav-nelson/github-action-markdown-link-check@v1
|
|
with:
|
|
config-file: ".markdownlinkcheck.json"
|
|
|
|
- name: Raise an Issue to report broken links
|
|
if: ${{ failure() }}
|
|
uses: peter-evans/create-issue-from-file@v2.3.2
|
|
with:
|
|
title: Broken link detected by CI
|
|
content-filepath: .github/ISSUE_TEMPLATE/broken-link.md
|
|
labels: automated, broken link
|