fmhy-bookmarks/.github/workflows/run_make_fmhy_bookmarks.yml
2025-09-01 17:37:59 +05:30

34 lines
975 B
YAML

name: Run make_fmhy_bookmarks.py
on:
schedule:
- cron: '0 0 * * 1' # This means the action will run every Monday at midnight UTC
workflow_dispatch: # Allows the workflow to be run manually from the GitHub UI
jobs:
run_script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: astral-sh/setup-uv
uses: astral-sh/setup-uv@v6.6.0
- name: Install dependencies with `uv`
run: uv sync
- name: Run make_fmhy_bookmarks.py with `uv`
run: uv run make_fmhy_bookmarks.py
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add fmhy_in_bookmarks.html
git add fmhy_in_bookmarks_starred_only.html
git commit -m 'Update fmhy_in_bookmarks.html'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}