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