Skip to content

Post to BotBlock

Post to BotBlock #1040

Workflow file for this run

name: Post to BotBlock
on:
schedule:
- cron: "0 6,18 * * *"
workflow_dispatch:
jobs:
run:
name: Run
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set up node
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Set up build cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3
id: cache-build
with:
path: build
key: build-${{ github.sha }}
- name: Build project
run: pnpm build
if: steps.cache-build.outputs.cache-hit != 'true'
- name: Post to Botblock
run: npm run start
env:
DISCORD_BOT_ID: "467377486141980682"
COUNTR_API_ENDPOINT: ${{ secrets.COUNTR_API_ENDPOINT }}
BOTBLOCK_KEYS: ${{ secrets.BOTBLOCK_KEYS }}