Create distrosFeed.yml

This commit is contained in:
zenobit 2025-03-08 00:42:52 +01:00 committed by GitHub
parent abe2c63247
commit 6d59b1a47a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 25 additions and 0 deletions

25
.github/workflows/distrosFeed.yml vendored Normal file
View File

@ -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