diff --git a/.github/workflows/update-manifest.yml b/.github/workflows/update-manifest.yml new file mode 100644 index 0000000..6dc050a --- /dev/null +++ b/.github/workflows/update-manifest.yml @@ -0,0 +1,35 @@ +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 diff --git a/cinny b/cinny index e65a516..a20c871 160000 --- a/cinny +++ b/cinny @@ -1 +1 @@ -Subproject commit e65a516350c37299f31fc3270ed8f9e4c8ff99f4 +Subproject commit a20c871726edc33c908a46dd77e9b6ceb48e59ab