-
-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (45 loc) · 1.23 KB
/
build.yaml
File metadata and controls
53 lines (45 loc) · 1.23 KB
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
44
45
46
47
48
49
50
51
52
53
name: Update Stars
on:
push:
branches: [master]
schedule:
- cron: '22 22 * * 6'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- uses: actions/cache@v4
with:
path: |
.cache
key: ${{ runner.os }}-stars-${{ hashFiles('**/pnpm-lock.yaml') }}
- run: pnpm build
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# Username that will be used to fetch the starred repos
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
- run: pnpm run deploy
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GH_TOKEN }}
branch: master
message: 'chore: auto publish [skip ci]'