From f1f42513023211553c3a25c9002bd596d13112bd Mon Sep 17 00:00:00 2001 From: Manuel Date: Sat, 18 Feb 2023 23:49:13 +0100 Subject: [PATCH] Add link checker and linter https://github.com/sindresorhus/awesome/issues/1810#issuecomment-1321607755 --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9a33a9d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Check Lint + +on: + workflow_dispatch: + push: + branches: + - main + schedule: + # Run every first day at 00:00 AM every month. + - cron: "0 0 * * *" + pull_request: + branches: [main] + paths: + - 'readme.md' + +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Check links + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + retry-after: 10 + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: '.github/workflows/markdown.links.config.json' + - name: Awesome linter + run: npx awesome-lint