From c93a862537eeac70c02b17dafad4c9968b6f5839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=BE=85=E0=BC=BB=20=C7=AC=C9=80=C4=A7=20=E0=BC=84?= =?UTF-8?q?=E0=BC=86=E0=BD=89?= Date: Mon, 1 Mar 2021 19:49:12 +0100 Subject: [PATCH] Check links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every 7 days and on push, we'll have [awesome-bot](https://github.com/dkhamsing/awesome_bot) checking all links. Co-authored-by: Léo Colombaro --- .github/dependabot.yml | 6 ++++++ .github/workflows/check-links.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/check-links.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..142cbb8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml new file mode 100644 index 0000000..d6fcc85 --- /dev/null +++ b/.github/workflows/check-links.yml @@ -0,0 +1,26 @@ +name: Check links + +on: + push: + workflow_dispatch: + schedule: + - cron: '0 12 */7 * *' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7.2 + - name: Install Awesome Bot + run: gem install awesome_bot + - name: Run Awesome Bot + run: awesome_bot README.md --request-delay 1 --allow-timeout -t 5 --allow-dupe --white-list sho.rt,your.site,long.url,awesome.re + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: ab-results + path: ab-results-README.md-filtered.json