Skip to content

.github/workflows/run.yml #33654

.github/workflows/run.yml

.github/workflows/run.yml #33654

Workflow file for this run

on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:
jobs:
generate:
name: Generate repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
- name: Run generator
run: node index.js
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git fetch origin main
git checkout main
git add repo.json
git diff --cached --quiet && exit 0
git commit -m "Update repository"
git push