Create weekly.yml

This commit is contained in:
Fundor333
2025-04-16 11:55:02 +02:00
committed by GitHub
parent de0d54e502
commit 9962eb45fe

38
.github/workflows/weekly.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Weekly
on:
schedule:
- cron: "0 6 * * 0"
workflow_dispatch:
jobs:
webmentions:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip" # caching pip dependencies
- name: Install Pip dependencies
run: pip install -r requirements.txt
- name: Fetch Syndication
run: make weekly
- name: Commit to repository
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
COMMIT_MSG: |
👾Fetch webmentions
skip-checks: true
run: |
git config user.email "git@fundor333.com"
git config user.name "fundor333"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/fundor333/fundor333.github.io.git
git checkout main
git add .
git diff --quiet && git diff --staged --quiet || (git commit -m "${COMMIT_MSG}"; git push origin main)