mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-22 15:30:34 +00:00
Refactor periodic GHA
Convert MD-lint Workflow into general periodic Workflow. Minor tweaks from refactoring in other repos. Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
This commit is contained in:
committed by
Thomas Pantelis
parent
5d4d921dbf
commit
8c49e84959
@@ -1,25 +0,0 @@
|
|||||||
name: Markdown Link Checks
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 0 * * 0"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
markdown-link-check-periodic:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Markdown Link Checks
|
|
||||||
steps:
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- 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: JasonEtco/create-an-issue@v2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
filename: .github/ISSUE_TEMPLATE/broken-link.md
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
name: Periodic
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * 0"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
markdown-link-check-periodic:
|
||||||
|
name: Markdown Links (all files)
|
||||||
|
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: JasonEtco/create-an-issue@v2
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
filename: .github/ISSUE_TEMPLATE/broken-link.md
|
||||||
Reference in New Issue
Block a user