File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -12,25 +12,23 @@ jobs:
1212 uses : actions/checkout@v4
1313 with :
1414 ref : main
15- path : main
16-
17- - name : Install pnpm
18- uses : pnpm/action-setup@v3
19- with :
20- version : 9
15+ path : repo
2116
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
2225 - name : Checkout Branch
2326 uses : actions/checkout@v4
2427 with :
25- path : branch
26-
27- - name : Install Dependencies in Main
28- run : (cd main && pnpm install)
28+ path : repo
2929 - name : Install Dependencies in Branch
30- run : (cd branch && pnpm install)
31- - 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
30+ run : (cd repo && npm install)
31+ - name : Move Snapshot To Branch
32+ run : mv ./snap.md repo/snap.md
3533 - name : Compare Snapshot In Branch
36- 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