60 45 C0 56 57 13 95 18 39 95 89 03 #1802
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: scrape m3u | |
on: | |
push | |
jobs: | |
automated-scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@main | |
- name: run commands | |
run: | | |
for i in *.m3u ; do for j in $(cat $i) ; do wget -S --spider -q -t 1 -T 1 --max-redirect 0 $j 2>&1 | grep "HTTP/" | awk '{print $2}' | (cat ; echo $j ;) | paste -s -d " " >> A-$i ; echo -e "$i - $j" ; done ; done | |
- name: git stuff | |
run: | | |
git config --local user.email "action[bot]@github.com" | |
git config --local user.name "github-actions[bot]" | |
git add . | |
git commit -m "$(od -An -tx4 -w16 -N16 /dev/urandom | cut -c2- | tr '[:lower:]' '[:upper:]')" | |
git push |