name: Update release notes manifest on: push: paths: - 'cinny/public/update/*.md' - 'scripts/generate-update-manifest.mjs' permissions: contents: write jobs: manifest: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' - name: Generate manifest.json run: node scripts/generate-update-manifest.mjs - name: Commit manifest if changed run: | if git diff --quiet -- cinny/public/update/manifest.json; then echo "manifest.json unchanged" exit 0 fi git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add cinny/public/update/manifest.json git commit -m "chore: regenerate update manifest.json" git push