Skip to content

Commit

Permalink
feat: actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Apr 10, 2024
1 parent 4aa4055 commit df3e39a
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Update README.md

on:
push:
branches: [master]
schedule:
- cron: "5 0 * * *"
workflow_dispatch:

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
- uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Setup node with cache
uses: actions/setup-node@v4
with:
cache: pnpm

- name: Install Dependencies
run: pnpm install

- name: Update README.md
run: pnpm gen

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: "Generated SVG and updated README.md"
default_author: github_actions



0 comments on commit df3e39a

Please sign in to comment.