forked from CircuitVerse/community-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 708 Bytes
/
Copy pathreleases.yml
File metadata and controls
31 lines (24 loc) · 708 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
name: Generate Releases Data
on:
schedule:
- cron: "0 0 * * *" # daily
workflow_dispatch:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npx tsx scripts/generateReleases.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit updated releases data
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git add public/releases/releases.json
git commit -m "chore: update releases data" || exit 0
git push