Skip to content

Commit 825366e

Browse files
committed
ci: fix release workflow to clone sister repos for go.work
1 parent f654757 commit 825366e

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,31 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19+
- name: Checkout sister repos
20+
run: |
21+
cd ..
22+
git clone --depth 1 --branch v0.4.0 https://github.com/GrayCodeAI/eyrie.git eyrie || git clone --depth 1 https://github.com/GrayCodeAI/eyrie.git eyrie
23+
git clone --depth 1 --branch v0.4.0 https://github.com/GrayCodeAI/tok.git tok || git clone --depth 1 https://github.com/GrayCodeAI/tok.git tok
24+
git clone --depth 1 --branch v0.4.0 https://github.com/GrayCodeAI/yaad.git yaad || git clone --depth 1 https://github.com/GrayCodeAI/yaad.git yaad
25+
git clone --depth 1 --branch v0.4.0 https://github.com/GrayCodeAI/sight.git sight || git clone --depth 1 https://github.com/GrayCodeAI/sight.git sight
26+
git clone --depth 1 --branch v0.4.0 https://github.com/GrayCodeAI/inspect.git inspect || git clone --depth 1 https://github.com/GrayCodeAI/inspect.git inspect
27+
28+
- name: Create go.work
29+
run: |
30+
cat > go.work << 'EOF'
31+
go 1.26.1
32+
33+
use .
34+
35+
replace (
36+
github.com/GrayCodeAI/eyrie => ../eyrie
37+
github.com/GrayCodeAI/tok => ../tok
38+
github.com/GrayCodeAI/yaad => ../yaad
39+
github.com/GrayCodeAI/inspect => ../inspect
40+
github.com/GrayCodeAI/sight => ../sight
41+
)
42+
EOF
43+
1944
- name: Set up Go
2045
uses: actions/setup-go@v5
2146
with:
@@ -31,3 +56,4 @@ jobs:
3156
args: release --clean
3257
env:
3358
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GOWORK: "on"

0 commit comments

Comments
 (0)