Update sync_forks.yml

This commit is contained in:
Voxel 2025-03-15 11:54:48 -04:00 committed by GitHub
parent e59bd1c6cd
commit 7b8a2dcfe4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,27 +2,28 @@ name: Sync Forks
on: on:
schedule: schedule:
- cron: '*/20 * * * *' # Runs every 20 minutes - cron: '0 */1 * * *'
workflow_dispatch: # Allows manual triggering workflow_dispatch:
jobs: jobs:
sync: sync:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out repository - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v2
- name: Set up Git - name: Set up Python
run: | uses: actions/setup-python@v2
git config --global user.name "github-actions[bot]" with:
git config --global user.email "github-actions[bot]@users.noreply.github.com" python-version: '3.x'
- name: Install dependencies - name: Install dependencies
run: sudo apt-get install -y git
- name: Run Sync Script
run: | run: |
mkdir -p /home/runner/work/clones python -m pip install --upgrade pip
export BASE_DIR="/home/runner/work/clones" pip install requests
python3 sync_forks.py
- name: Run sync script
run: python sync_forks.py
env:
TOKEN: ${{ secrets.TOKEN }}