Skip to content

pocket update

pocket update #22812

Workflow file for this run

name: pocket update
# Controls when the action will run.
on:
schedule:
- cron: "0 * * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: run-pocket-import
cancel-in-progress: false
jobs:
run-pocket-import:
name: run-pocket-import
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install node v20
uses: actions/setup-node@v4
with:
node-version: 20
- name: yarn install
run: yarn install
- name: install typescript
run: npm install -g [email protected]
- name: change directory
run: cd ./cmd
- name: compile
run: tsc ./cmd/pocket.ts --esModuleInterop
- name: list files
run: ls ./cmd
- name: run
run: node ./cmd/pocket.js
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
POKTSCAN_API_KEY: ${{ secrets.POKTSCAN_API_KEY }}
CMC_API_KEY: ${{ secrets.CMC_API_KEY }}