From ddfbee956b37e7586a1c5df7424c11c6c56d872e Mon Sep 17 00:00:00 2001 From: zenobit Date: Tue, 11 Mar 2025 20:01:57 +0100 Subject: [PATCH] Update dw.yml --- .github/workflows/dw.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dw.yml b/.github/workflows/dw.yml index aabf048..0037586 100644 --- a/.github/workflows/dw.yml +++ b/.github/workflows/dw.yml @@ -13,15 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Get latest ISOs links run: | curl -s https://distrowatch.com | grep 'News".*\.iso' | awk -F'"' '{print $4, $6}' | column --table > ISOs.tmp - sort -u ISOs.tmp -o ISOs.tmp - mv ISOs.tmp ISOs.list + sort -u ISOs.tmp -o ISOs.list echo "on DW are:" >> $GITHUB_STEP_SUMMARY - NEW=$(cat ISOs.list) - echo "${NEW}" >> $GITHUB_STEP_SUMMARY + cat ISOs.tmp >> $GITHUB_STEP_SUMMARY - name: Git Config run: | @@ -30,5 +27,8 @@ jobs: - name: Update list run: | - git add ISOs.list - git diff --cached --quiet || (git commit -m "update ISOs list" && git push) + if ! git diff --exit-code --quiet ISOs.list; then + git add ISOs.list + git commit -m "update ISOs list" + git push + fi