-
-
Notifications
You must be signed in to change notification settings - Fork 327
37 lines (29 loc) · 881 Bytes
/
sync.yml
File metadata and controls
37 lines (29 loc) · 881 Bytes
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
name: sync
on: [pull_request, pull_request_target]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile --non-interactive
- name: Sync
run: yarn sync
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action
with:
commit_message: "chore: sync"
file_pattern: "*.yml"