mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-19 17:43:42 -05:00
34 lines
802 B
YAML
34 lines
802 B
YAML
name: Sync Forks
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 */6 * * *' # Runs every 6 hours
|
|
workflow_dispatch: # Allows manual triggering
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install requests
|
|
|
|
- name: Configure Git
|
|
run: |
|
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
git config --global user.name "GitHub Actions"
|
|
|
|
- name: Run sync script
|
|
run: python sync_forks.py
|
|
env:
|
|
TOKEN: ${{ secrets.TOKEN }}
|