build(actions): add update-music
This commit is contained in:
2
.github/workflows/update-charwords.yaml
vendored
2
.github/workflows/update-charwords.yaml
vendored
@@ -1,8 +1,6 @@
|
||||
name: Update charwords
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
|
||||
28
.github/workflows/update-music.yaml
vendored
Normal file
28
.github/workflows/update-music.yaml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Update music
|
||||
|
||||
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@v2
|
||||
with:
|
||||
version: latest
|
||||
- name: Install dependencies
|
||||
run: pnpm i
|
||||
- name: Build all
|
||||
run: pnpm run music mapping
|
||||
- name: Commit changes if any
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "chore(music): auto update mapping"
|
||||
Reference in New Issue
Block a user