Run Markdead #1267
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: Run Markdead | |
on: | |
push: | |
schedule: | |
- cron: '0 */6 * * *' | |
jobs: | |
trolling: | |
name: Run Markdead | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install requests | |
run: python -m pip install requests | |
- name: Check for dead Google Forms | |
run: cd $GITHUB_WORKSPACE && python markdead.py -a | |
- name: Push results | |
run: cd $GITHUB_WORKSPACE && git config user.name "Dead Google Forms Remover" && git config user.email "[email protected]" && git add data.csv && git commit -m "Remove dead Google Forms" && git remote set-url origin "https://__token__:${{ secrets.GITHUB_TOKEN }}@github.com/thefightagainstmalware/CatPhish" && git push -u origin main || exit 0 |