-
Notifications
You must be signed in to change notification settings - Fork 0
10000
name: "Sync fork" | |
on: | |
schedule: | |
- cron: '0 3 * * *' | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
name: "Sync catalog" | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.BOT_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Fetch upstream | |
run: | | |
cd .github/workflows | |
npm ci | |
node index.js | |
- name: Commit changes | |
run: | | |
git config --global user.email "anzerr@users.noreply.github.com" | |
git config --global user.name "anzerr" | |
git add --all | |
git commit -sm "Update with fork" || exit 0 | |
git push |