-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1 KB
/
get-repo-info.yml
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
41
42
43
name: Get Repo Info
# Run every night at midnight or when button clicked
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
get-info-and-push:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20.5.1"
- name: Install deps
run: |
npm install @actions/core
npm install @actions/github
npm install utf8
npm install prettier
- name: Get Repo Info
run: |
node src/lib/scripts/GetRepoInfo.js ${{ secrets.GITHUB_TOKEN }}
npx prettier --plugin-search-dir ./static/json --write ./static/json
- name: Commit Repo Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "q2d2"
git add .
git commit -m "Updated Repo Info"
git push