mirror of
https://github.com/fmhy/bookmarks.git
synced 2026-03-11 08:55:39 +00:00
34 lines
975 B
YAML
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 }}
|