From f1af6c9c9d6bf657f687776ed49c72d0100bc995 Mon Sep 17 00:00:00 2001 From: beth0 Date: Mon, 16 Jan 2023 08:15:19 +0200 Subject: [PATCH] added lychee github action --- .github/workflows/lychee-action.yml | 37 +++++++++++++++++++++++++++++ .lycheeignore | 8 +++++++ README.md | 16 ++++++++----- 3 files changed, 55 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/lychee-action.yml create mode 100644 .lycheeignore diff --git a/.github/workflows/lychee-action.yml b/.github/workflows/lychee-action.yml new file mode 100644 index 0000000..72f49c7 --- /dev/null +++ b/.github/workflows/lychee-action.yml @@ -0,0 +1,37 @@ +name: Validate Links + +on: + # [push] + repository_dispatch: + workflow_dispatch: + schedule: + - cron: "00 18 * * *" + +jobs: + linksValidation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Validate Links + id: lychee + uses: lycheeverse/lychee-action@v1.5.4 + with: + # Check all markdown and html files in repo (default) + args: --no-progress --timeout 40 --retry-wait-time 3 --max-redirects 10 -a 200,403 './README.md' + # Use json as output format (instead of markdown) + # format: json + # Use different output file path + # output: /tmp/foo.txt + # Fail action on broken links + # fail: true + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Create Issue From File + if: env.lychee_exit_code != 0 + uses: peter-evans/create-issue-from-file@v4 + with: + title: Validate Links Report + content-filepath: ./lychee/out.md + labels: report, automated issue \ No newline at end of file diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 0000000..d899caa --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,8 @@ +https://www.deck.rocks/ +http://unrealspeech.up.railway.app/ +http://textgeneratedimagegenerate.streamlit.app +https://github.com/.* +http://staccato.ai +http://secure.scribebuddy.com/ +http://airoomplanner.com/ +http://webapi.ai/ \ No newline at end of file diff --git a/README.md b/README.md index 8c2da20..acf247b 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,16 @@ ---
- Status -
- - Number of AI Projects - +

Status

+ + + Number of AI Projects + + +• + +[![Validate Links](https://github.com/ai-collection/ai-collection/actions/workflows/lychee-action.yml/badge.svg)](https://github.com/ai-collection/ai-collection/actions/workflows/lychee-action.yml) +
--- @@ -847,7 +852,6 @@ No technical skills or software download required.

| [Squish](http://chrome.google.com) | Google Chrome - Download The Fast, Secure Browser From Google. | . | :grey_question: | | [Stable Diffusion Prompt Generator](http://www.thomas.io) | Thomas.Io. | . | :grey_question: | | [Stabledojo](http://www.stabledojo.com) | Stabledojo. | . | :grey_question: | -| [Staccato](http://staccato.ai) | Staccato - The Artificially Intelligent Music & Lyrics Co-Writer. | . | :grey_question: | | [Starryai](http://starryai.com) | Starryai - Ai Art Generator App - Ai Art Maker. | Simply enter a prompt and our AI transforms your words into works of art. | :grey_question: | | [Starryai](http://www.starryai.com) | Starryai - Ai Art Generator App - Ai Art Maker. | Simply enter a prompt and our AI transforms your words into works of art. | :grey_question: | | [Startup Pitch Generator](http://tally.so) | Free Online Form Builder. | Create forms for all purposes in seconds.Without knowing how to code. | :white_check_mark: |