Skip to content

Sync Ecosystem Projects & Sponsors #3

Sync Ecosystem Projects & Sponsors

Sync Ecosystem Projects & Sponsors #3

name: Sync Ecosystem Projects & Sponsors
on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight UTC
workflow_dispatch: # Allows manual trigger
jobs:
sync-profile:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Run sync script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python .github/scripts/update_ecosystem.py
- name: Commit and push if changed
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add profile/README.md
git diff --quiet && git diff --staged --quiet || (git commit -m "auto: update ecosystem projects table & sponsors" && git push)