Files
fundor333.com/.github/workflows/cron_replay.yml
dependabot[bot] ad5c41268c Bump actions/setup-python from 5 to 6
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 13:12:28 +00:00

48 lines
1.3 KiB
YAML

name: Cron Replay
on:
push:
branches:
- main
pull_request:
branches:
- main
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@v6
with:
python-version: "3.12"
cache: "pip" # caching pip dependencies
- name: Install Pip dependencies
run: pip install -r requirements.txt
- name: Fetch Syndication
run: python ./action_script/replay-getter.py
- name: Fetch webmentions
env:
WEBMENTIONS_TOKEN: ${{ secrets.WEBMENTIONS_TOKEN }}
run: python ./action_script/webmention.py
- name: Commit to repository
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
COMMIT_MSG: |
👾Fetch response text
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)