From 8c49e8495923a81fef47b57cae58ab58fd27e090 Mon Sep 17 00:00:00 2001 From: Daniel Farrell Date: Wed, 21 Oct 2020 04:42:13 -0400 Subject: [PATCH] Refactor periodic GHA Convert MD-lint Workflow into general periodic Workflow. Minor tweaks from refactoring in other repos. Signed-off-by: Daniel Farrell --- .github/workflows/md-links-periodic.yml | 25 ----------------------- .github/workflows/periodic.yml | 27 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/md-links-periodic.yml create mode 100644 .github/workflows/periodic.yml diff --git a/.github/workflows/md-links-periodic.yml b/.github/workflows/md-links-periodic.yml deleted file mode 100644 index 6307884..0000000 --- a/.github/workflows/md-links-periodic.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml new file mode 100644 index 0000000..643c86e --- /dev/null +++ b/.github/workflows/periodic.yml @@ -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