32 lines
685 B
YAML
32 lines
685 B
YAML
name: Update charwords
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use PNPM
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
run_install: false
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: 'pnpm'
|
|
- name: Install dependencies
|
|
run: pnpm i
|
|
- name: Update charwords
|
|
run: pnpm run charwords:update
|
|
- name: Commit changes if any
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: "chore(charwords): auto update" |