Skip to content

Commit

Permalink
feat: Add GitHub action workflow (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Aug 27, 2024
1 parent 8aef2d9 commit ce7b500
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Auto Update

on:
workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
script:
- "runtime.js"
- "wasm-plugin.js"
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Update
run: node ./scripts/${{ matrix.script }}
env:
CRAWL_SECRET: ${{ secrets.CRAWL_SECRET }}
3 changes: 2 additions & 1 deletion cache/runtimes/next.yml/core-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2564,6 +2564,7 @@
"v10.0.1-canary.1": null,
"v10.0.1-canary.0": null,
"v10.0.1": null,
"v10.0.0": null
"v10.0.0": null,
"v15.0.0-canary.132": "0.101.3"
}
}
2 changes: 1 addition & 1 deletion scripts/commit-to-core-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function getCoreVersions(repoDir, cacheDir, allCommits) {
}

for (const commit of allCommits) {
if (versions[commit]) {
if (Object.prototype.hasOwnProperty.call(versions, commit)) {
continue
}
const version = await getCoreVersion(repoDir, commit)
Expand Down

0 comments on commit ce7b500

Please sign in to comment.