From d339f81ccb3e3847c1d167c1a5224cf4fbc8fa00 Mon Sep 17 00:00:00 2001 From: Jake Henning <59198928+jkhenning@users.noreply.github.com> Date: Thu, 23 Dec 2021 22:54:47 +0200 Subject: [PATCH] Create links.yml --- .github/workflows/links.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/links.yml diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 00000000..e406e415 --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,37 @@ +# This is a basic workflow to help you get started with Actions + +name: Links + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + #push: + # branches: [ main ] + #pull_request: + # branches: [ main ] + #schedule: + # - cron: "00 18 * * *" + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1.2.0 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Create Issue From File + if: ${{ steps.lychee.outputs.exit_code != 0 }} + uses: peter-evans/create-issue-from-file@v3 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: report, automated issue