Generator Dependency Star Download Data #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generator Dependency Star Download Data | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
schedule: | |
- cron: "0 * * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_REQUEST_TOKEN: ${{ secrets.REQUEST_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
strategy: | |
matrix: | |
node-version: [22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build | |
run: | | |
npm install | |
npm run gen:data | |
- name: "Commit" | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: lonewolfyx | |
author_email: [email protected] | |
message: "fix(data): Update the latest number of stars and downloads in dependency.json" | |
add: "." | |
token: ${{ secrets.ACCESS_TOKEN }} |