-
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 927 Bytes
/
nightly.yml
File metadata and controls
40 lines (33 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
stats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup PNPM
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: latest
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run stats collection
env:
STATS_COLLECT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm run collect-stats
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit_message: "[ci] collect-stats"
branch: main