Sync GitHub #1419
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync GitHub | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'projects/**' | |
jobs: | |
sync-github: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- run: node scripts/sync-github.mjs | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |