This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
Sitemap Updater #5
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: 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 |