Skip to content

Clean Up XML files

Clean Up XML files #82

Workflow file for this run

name: Clean Up XML files
on:
schedule:
- cron: '0 1 * * 5'
workflow_dispatch:
# to consider: the use of action jobs to breakout each task
# https://docs.github.com/en/actions/learn-github-actions/essential-features-of-github-actions#sharing-data-between-jobs
jobs:
run-clean-up:
runs-on: ubuntu-22.04
timeout-minutes: 170
environment: CI
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Install dependencies
run: |
pip3 install -r requirements.txt
- name: Clean-up RSS feed
run: |
python3 cleanup.py
- name: Save changes
run: |
DATE=$(date -Iseconds)
git config user.name github-actions
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git pull origin main
git commit --all --message "Updated by Crontab on $DATE" || echo "no changes to commit"
git push origin main