Skip to content

update

update #9984

Workflow file for this run

name: update
on:
push:
branches:
- main
schedule:
- cron: "0 1 * * *"
jobs:
refresh:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- run: node .github/actions/refreshStar.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit
run: |
git config --local user.email "daiwei521@126.com"
git config --local user.name "edison1105"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git add .
git commit -m "chore: refresh stars"
git push