name: Get latest ISOs links from DistroWatch on: workflow_dispatch: schedule: - cron: '0 */6 * * *' permissions: contents: write 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' | awk -F'"' '{print $4, $6}' | column --table > ISOs.tmp echo "### on DW are:" >> $GITHUB_STEP_SUMMARY cat ISOs.tmp >> $GITHUB_STEP_SUMMARY if [ -f ISOs.list ]; then cat ISOs.list | column --table >> ISOs.tmp fi cat ISOs.tmp | column --table | sort -u -o 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 run: | if ! git diff --exit-code --quiet ISOs.list; then git add ISOs.list git commit -m "update ISOs list" git push fi