Update Themes #740
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Update Themes' | |
on: | |
schedule: | |
- cron: '0 8 * * *' | |
workflow_dispatch: | |
jobs: | |
update-themes: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: pnpm setup | |
uses: pnpm/action-setup@v2 | |
- name: install | |
run: pnpm install | |
- run: pnpm run update:themes | |
- run: pnpm build | |
- run: pnpm test | |
env: | |
CI: true | |
- name: commit | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
git config user.name "Pine Wu" | |
git config user.email octref@gmail.com | |
git status | |
git add -A | |
git commit -m "🤖: update themes" | |
git push | |
else | |
echo "no changes" | |
fi |