diff --git a/.github/workflows/update-charwords.yaml b/.github/workflows/update-charwords.yaml index 6433578..586af10 100644 --- a/.github/workflows/update-charwords.yaml +++ b/.github/workflows/update-charwords.yaml @@ -1,8 +1,6 @@ name: Update charwords on: - push: - branches: [ main ] schedule: - cron: '0 0 * * *' diff --git a/.github/workflows/update-music.yaml b/.github/workflows/update-music.yaml new file mode 100644 index 0000000..20f7918 --- /dev/null +++ b/.github/workflows/update-music.yaml @@ -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" \ No newline at end of file