From f1f42513023211553c3a25c9002bd596d13112bd Mon Sep 17 00:00:00 2001 From: Manuel Date: Sat, 18 Feb 2023 23:49:13 +0100 Subject: [PATCH 1/2] 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 From 5bdb1c9c934a8e99c988192b68bf2855879a09e0 Mon Sep 17 00:00:00 2001 From: Manuel Date: Sun, 19 Feb 2023 15:03:28 +0100 Subject: [PATCH 2/2] Fix case of README.md in paths and add action file --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a33a9d..30e5c8e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,8 @@ on: pull_request: branches: [main] paths: - - 'readme.md' + - 'README.md' + - '.github/workflows/main.yml' jobs: main: