-
-
Notifications
You must be signed in to change notification settings - Fork 380
50 lines (42 loc) · 1.07 KB
/
update-themes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 'Update Themes'
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
update-themes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: pnpm setup
uses: pnpm/[email protected]
with:
version: 6.31.0
run_install: true
- 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 [email protected]
git status
git add -A
git commit -m "🤖: update themes"
git push
else
echo "no changes"
fi