Skip to content

Record Gleam stats #456

Record Gleam stats

Record Gleam stats #456

name: Record Gleam stats
on:
schedule:
# Run every day at 4am
- cron: "0 4 * * *"
workflow_dispatch:
# push:
# branches:
# - main
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.1"
rebar3-version: "3"
gleam-version: "1.0.0"
- run: gleam run
working-directory: scripts/record_gleam_stats
env:
GCP_CLIENT_ID: "${{ secrets.GCP_CLIENT_ID }}"
GCP_CLIENT_SECRET: "${{ secrets.GCP_CLIENT_SECRET }}"
GCP_REFRESH_TOKEN: "${{ secrets.GCP_REFRESH_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.MY_GITHUB_TOKEN }}"
PLAUSIBLE_TOKEN: "${{ secrets.PLAUSIBLE_TOKEN }}"