Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Sitemap Updater

Sitemap Updater #4

name: Sitemap Updater
on:
schedule:
# Run every week
- cron: "0 0 * * 1"
workflow_dispatch:
jobs:
cron:
name: Sitemap Updater
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
ref: main
- name: setup python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -U requests bs4
- name: execute py script
run: python utils/sitemapgen.py
- name: Update repo
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Sitemap Updated"
git push