From 6d59b1a47afaeff151731bcab1d35c045f3aa443 Mon Sep 17 00:00:00 2001 From: zenobit Date: Sat, 8 Mar 2025 00:42:52 +0100 Subject: [PATCH] Create distrosFeed.yml --- .github/workflows/distrosFeed.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/distrosFeed.yml diff --git a/.github/workflows/distrosFeed.yml b/.github/workflows/distrosFeed.yml new file mode 100644 index 0000000..d9593a2 --- /dev/null +++ b/.github/workflows/distrosFeed.yml @@ -0,0 +1,25 @@ +# This is a basic workflow that is manually triggered + +name: Get latest ISOs links + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + schedule: + - cron: '0 */6 * * *' + +jobs: + get: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Get latest ISOs links + run: curl -s https://distrowatch.com | grep 'News".*\.iso' | cut -d '"' -f6 | tee -a ISOs.list + + - name: Update list + run: | + git add ISOs.list + git commit -m "update ISOs list" + git push