Record Gleam stats #456
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: 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 }}" |