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 88 build :
99 runs-on : ubuntu-latest
1010 steps :
11- - name : Checkout Main
12- uses : actions/checkout@v4
13- with :
14- ref : main
15- path : main
16-
1711 - name : Install pnpm
1812 uses : pnpm/action-setup@v3
1913 with :
2014 version : 9
2115
22- - name : Checkout Branch
16+ - name : Checkout Main
2317 uses : actions/checkout@v4
2418 with :
25- path : branch
19+ ref : main
20+ path : repo
2621
2722 - 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)
3124 - 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
3538 - 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