feat: script

This commit is contained in:
TrèsAbhi committed 2024-05-19 18:06:02 -05:00
1 parent 505f74aa26
commit 8c8867280b
2 files changed
+37 -2

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
name: CD Averages
on:
push:
branches: dev
workflow_dispatch:
schedule:
- cron: '0 12 * * 0'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build averages
run: |
GH_TOKEN=${{ secrets.GH_TOKEN }}
DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}
DATABASE_URL=${{ secrets.DATABASE_URL }}
VIDEOS_SHEET=${{ secrets.VIDEOS_SHEET }}
GOOGLE_APPLICATION_CREDENTIALS=${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
bun scripts/averages.ts