Update distrosFeed.yml
This commit is contained in:
parent
6681829b61
commit
3c8189c7e7
|
|
@ -1,9 +1,5 @@
|
||||||
# This is a basic workflow that is manually triggered
|
|
||||||
|
|
||||||
name: Get latest ISOs links
|
name: Get latest ISOs links
|
||||||
|
|
||||||
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
|
||||||
# or API.
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
|
|
@ -19,15 +15,17 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Get latest ISOs links
|
- name: Get latest ISOs links
|
||||||
run: curl -s https://distrowatch.com | grep 'News".*\.iso' | cut -d '"' -f4,6 | sed 's/"/ /g' | column --table | tee -a ISOs.list
|
|
||||||
|
|
||||||
- name: "Git Config"
|
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "${{ github.repository_owner }}"
|
curl -s https://distrowatch.com | grep 'News".*\.iso' | awk -F'"' '{print $4, $6}' | column --table > ISOs.tmp
|
||||||
git config --global user.email "noreply@github.com"
|
sort -u ISOs.tmp -o ISOs.tmp
|
||||||
|
mv ISOs.tmp ISOs.list
|
||||||
|
|
||||||
|
- name: Git Config
|
||||||
|
run: |
|
||||||
|
git config --local user.name "${{ github.repository_owner }}"
|
||||||
|
git config --local user.email "noreply@github.com"
|
||||||
|
|
||||||
- name: Update list
|
- name: Update list
|
||||||
run: |
|
run: |
|
||||||
git add ISOs.list
|
git add ISOs.list
|
||||||
git commit -m "update ISOs list"
|
git diff --cached --quiet || (git commit -m "update ISOs list" && git push)
|
||||||
git push
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue