diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml new file mode 100644 index 0000000..701d99f --- /dev/null +++ b/.github/workflows/update.yaml @@ -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 + + + \ No newline at end of file