update quickjs #64
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: "update quickjs" | |
| description: "periodically update quickjs, precompile it, then commit it to the `prebuilt` branch." | |
| on: | |
| schedule: | |
| # run daily at midnight | |
| - cron: "0 0 * * *" | |
| # allow for manual trigger | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: "write" | |
| jobs: | |
| check-for-update: | |
| runs-on: "ubuntu-latest" | |
| outputs: | |
| changed: ${{ steps.detect.outputs.changed }} | |
| steps: | |
| - uses: "actions/checkout@v4" | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: "detect quickjs submodule update" | |
| id: "detect" | |
| uses: "./.github/actions/check-quickjs" | |
| force-update: | |
| # precompile quickjs and commit if changed | |
| needs: "check-for-update" | |
| if: "needs.check-for-update.outputs.changed == 'true'" | |
| uses: "./.github/workflows/force-update-quickjs.yaml" |