From c571a775df0c9eda94902f3847b0dada1698e971 Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Thu, 30 Apr 2020 08:45:18 +0200 Subject: [PATCH] add Github Action to check links --- .github/workflows/check-links.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/check-links.yaml diff --git a/.github/workflows/check-links.yaml b/.github/workflows/check-links.yaml new file mode 100644 index 0000000..fa50239 --- /dev/null +++ b/.github/workflows/check-links.yaml @@ -0,0 +1,16 @@ +name: "Check links" +on: [pull_request, push] + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Link Checker + id: lc + uses: peter-evans/link-checker@v1 + with: + args: -r *.md *.yaml */*/*.go -x .cluster.local + - name: Fail if there were link errors + run: exit ${{ steps.lc.outputs.exit_code }} +