Skip to content

Update Search D1 (#248) #248

Update Search D1 (#248)

Update Search D1 (#248) #248

name: Search Updater
run-name: Update Search D1 (#${{ github.run_number }})
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
defaults:
run:
working-directory: polysearch
jobs:
process:
runs-on: ubuntu-latest
strategy:
matrix:
chain: [ahk, ahp]
steps:
- uses: actions/checkout@v3
- name: Set up Deno
uses: denoland/[email protected]
with:
deno-version: v1.x.x
- name: Pamp it
env:
CHAIN: ${{ matrix.chain }}
run: |
deno task start
- name: Execute changes
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
workingDirectory: "polysearch"
command: d1 execute search --file=./${{ matrix.chain }}.sql