Skip to content

update quickjs

update quickjs #64

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"