From 64e67d5a142e20beadeb7aff40d3f858507a7ed0 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Thu, 21 Mar 2024 15:21:39 -0300 Subject: [PATCH] add dependabot for GHA and linkchecker --- .github/dependabot.yml | 11 ++++++++++ .github/workflows/md-link-check.yml | 34 +++++++++++++++++++++++++++++ .github/workflows/mlc_config.json | 8 +++++++ 3 files changed, 53 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/md-link-check.yml create mode 100644 .github/workflows/mlc_config.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..563dd9b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# See https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/keeping-your-actions-up-to-date-with-dependabot + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + labels: + - "Bot" diff --git a/.github/workflows/md-link-check.yml b/.github/workflows/md-link-check.yml new file mode 100644 index 0000000..26fe987 --- /dev/null +++ b/.github/workflows/md-link-check.yml @@ -0,0 +1,34 @@ +name: Check Markdown links + +on: + pull_request: + push: + branches: + - main + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + + steps: + - name: checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Check gh-pages + if: github.ref == 'refs/heads/gh-pages' + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: 'mlc_config.json' + file-path: './README.md' + folder-path: '_docs/' + + - name: Check main + uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + file-path: './README.md' diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json new file mode 100644 index 0000000..063e365 --- /dev/null +++ b/.github/workflows/mlc_config.json @@ -0,0 +1,8 @@ +{ + "ignorePatterns": [ + { + "pattern": "://localhost" + } + ], + "aliveStatusCodes": [200, 0] +}