Update Search D1 (#118) #118
This file contains 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: 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, ksm] | |
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 |