Update #2530
This file contains 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: Update | |
on: | |
schedule: | |
- cron: "0 * * * *" | |
workflow_dispatch: | |
jobs: | |
run-bot: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
matrix: | |
node: [20.x] | |
steps: | |
- name: 🧱 Checkout repository | |
uses: actions/checkout@v4 | |
- name: 🔩 Setup PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: 🔩 Setup Node ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "pnpm" | |
- name: 🚀 Install dependencies | |
run: pnpm install | |
- name: 🤖 Run system | |
run: pnpm start | |
working-directory: ./cmd | |
env: | |
TOP_GG_TOKEN: ${{ secrets.TOP_GG_TOKEN }} | |
- name: ☑️ Commit Changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "[➡️] Update Readme" | |
branch: ${{ github.head_ref }} | |
commit_user_name: binary-blazer | |
commit_user_email: [email protected] |