File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change 8
8
build :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - name : Checkout Main
12
- uses : actions/checkout@v4
13
- with :
14
- ref : main
15
- path : main
16
-
17
11
- name : Install pnpm
18
12
uses : pnpm/action-setup@v3
19
13
with :
20
14
version : 9
21
15
22
- - name : Checkout Branch
16
+ - name : Checkout Main
23
17
uses : actions/checkout@v4
24
18
with :
25
- path : branch
19
+ ref : main
20
+ path : repo
26
21
27
22
- name : Install Dependencies in Main
28
- run : (cd main && pnpm install)
29
- - name : Install Dependencies in Branch
30
- run : (cd branch && pnpm install)
23
+ run : (cd repo && pnpm install)
31
24
- name : Create Snapshot In Main
32
- run : (cd main && npx tt-cli take-snapshot ./snap.md)
33
- - name : Copy Snapshot To Branch
34
- run : cp main/snap.md branch/snap.md
25
+ run : (cd repo && npx tt-cli take-snapshot ./snap.md)
26
+ - name : Copy Snapshot To Outer Directory
27
+ run : mv repo/snap.md ./snap.md
28
+ - name : Delete Main Directory
29
+ run : rm -rf repo
30
+ - name : Checkout Branch
31
+ uses : actions/checkout@v4
32
+ with :
33
+ path : repo
34
+ - name : Install Dependencies in Branch
35
+ run : (cd repo && pnpm install)
36
+ - name : Move Snapshot To Branch
37
+ run : mv ./snap.md repo/snap.md
35
38
- name : Compare Snapshot In Branch
36
- run : (cd branch && npx tt-cli compare-snapshot ./snap.md)
39
+ run : (cd repo && npx tt-cli compare-snapshot ./snap.md)
You can’t perform that action at this time.
0 commit comments