-
Notifications
You must be signed in to change notification settings - Fork 219
38 lines (36 loc) · 1.04 KB
/
update-stars.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
name: Update stars count
on:
schedule:
- cron: '0 0 * * 0' # At 00:00 on Sunday.
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run script
uses: ./.github/actions/update-stars
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run format
run: pnpm run format
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "(AUTO) Update stars"
title: "🤖 Update stars"
body: Update all stars count from Github and Gitlab
branch: ci-update-stars
add-paths: src/lib/stars.json
delete-branch: true
token: ${{ secrets.GITHUB_TOKEN }}