From 11520bd624d4bdfb4f41a269fc461b939d034e35 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Fri, 28 Jul 2023 14:15:30 +0200 Subject: [PATCH] tools/github actions: split dead links/unmaintained projects check workflow to separate workflows - generate 2 separate badges and use them in the project README, CONTRIBUTING, output markdown files - fixes https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/49 --- .github/workflows/check-dead-links.yml | 21 +++++++++++++++++++ ...ks.yml => check-unmaintained-projects.yml} | 11 ++-------- .hecat/awesome-lint.yml | 1 + CONTRIBUTING.md | 2 +- README.md | 2 +- markdown/header.md | 2 +- 6 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/check-dead-links.yml rename .github/workflows/{daily-checks.yml => check-unmaintained-projects.yml} (58%) diff --git a/.github/workflows/check-dead-links.yml b/.github/workflows/check-dead-links.yml new file mode 100644 index 0000000000..f4dcb3d5b3 --- /dev/null +++ b/.github/workflows/check-dead-links.yml @@ -0,0 +1,21 @@ +name: dead links + +on: + schedule: + - cron: '22 22 * * *' + workflow_dispatch: + +env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + check-dead-links: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: make install + - run: make url_check diff --git a/.github/workflows/daily-checks.yml b/.github/workflows/check-unmaintained-projects.yml similarity index 58% rename from .github/workflows/daily-checks.yml rename to .github/workflows/check-unmaintained-projects.yml index a42d22246e..47d3e4613d 100644 --- a/.github/workflows/daily-checks.yml +++ b/.github/workflows/check-unmaintained-projects.yml @@ -1,4 +1,4 @@ -name: dead links/unmaintained projects checks +name: unmaintained projects on: schedule: @@ -13,16 +13,9 @@ concurrency: cancel-in-progress: true jobs: - unmaintained-projects-checks: + check-unmaintained-projects: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - run: make install - run: make awesome_lint - - link-checks: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - run: make install - - run: make url_check diff --git a/.hecat/awesome-lint.yml b/.hecat/awesome-lint.yml index cab8deb1ae..fd9cec04ef 100644 --- a/.hecat/awesome-lint.yml +++ b/.hecat/awesome-lint.yml @@ -1,3 +1,4 @@ +# doc: https://github.com/nodiscc/hecat/blob/master/hecat/processors/awesome_lint.py steps: - name: data against awesome-selfhosted guidelines module: processors/awesome_lint diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 45f50795b9..3110d5e28c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ Don't know where to start? Check issues labeled [`help wanted`](https://github.c - Software with no development activity for 6-12 months may be removed from the list - Unmaintained software without an active community and/or persistent security issues may be removed from the list -- Problems should be reported automatically: [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/daily-checks.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/1) +- Problems should be reported automatically: [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/check-dead-links.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/1) [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/check-unmaintained-projects.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/1) ### Add software to the list diff --git a/README.md b/README.md index 46fe2fd7a9..798180d1c2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository holds data used to generate https://github.com/awesome-selfhosted/awesome-selfhosted -**Status: [experimental](https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/11)** [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/build.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/build.yml) [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/daily-update-metadata.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/daily-update-metadata.yml) +**Status: [experimental](https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/11)** [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/build.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/build.yml) [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/daily-update-metadata.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/daily-update-metadata.yml) [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/check-dead-links.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/1) [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/check-unmaintained-projects.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/1) ## Contributing diff --git a/markdown/header.md b/markdown/header.md index 12b2731056..aa9f0d47c7 100644 --- a/markdown/header.md +++ b/markdown/header.md @@ -1,6 +1,6 @@ # Awesome-Selfhosted -[![Awesome](_static/awesome.png)](https://github.com/sindresorhus/awesome) [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/daily-checks.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted/issues/3558) +[![Awesome](_static/awesome.png)](https://github.com/sindresorhus/awesome) [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/check-dead-links.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/1) [![](https://github.com/awesome-selfhosted/awesome-selfhosted-data/actions/workflows/check-unmaintained-projects.yml/badge.svg)](https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/1) Self-hosting is the practice of hosting and managing applications on your own server(s) instead of consuming from [SaaSS](https://www.gnu.org/philosophy/who-does-that-server-really-serve.html) providers.