Originality proofs #22
This file contains hidden or 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: Originality proofs | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '20 2 * * *' | |
| permissions: | |
| contents: write | |
| jobs: | |
| update: | |
| if: vars.ORIGINALITY_PROOF_AUTO_MANIFEST == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: yarn | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn build | |
| env: | |
| ORIGINALITY_PROOF_AUTO_MANIFEST: 'true' | |
| - name: Commit proof manifest | |
| run: | | |
| if git diff --quiet -- public/proofs/originality.json; then | |
| echo "No originality proof changes." | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add public/proofs/originality.json | |
| git commit -m "chore: update originality proofs" | |
| git push |