diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 0000000..21c7492 --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,29 @@ +# action: https://github.com/lycheeverse/lychee-action +# lychee: https://github.com/lycheeverse/lychee + +name: Links + +on: + pull_request: + workflow_dispatch: + schedule: + #first of every month + - cron: "0 0 1 * *" + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1 + + - name: Create Issue From File + if: ${{ failure() && github.event_name != 'pull_request' }} + uses: peter-evans/create-issue-from-file@v5 + with: + title: Link Checker Report + content-filepath: ./lychee/out.md + labels: report, automated issue \ No newline at end of file