Skip to content

Commit 883f3dd

Browse files
authored
Fix tilt ci (#1161)
Fixes tilt not using declared catalogd version in go.mod file, causing the ci to fail if catalogd is updated in an incompatible way (i.e. API change). Signed-off-by: dtfranz <[email protected]>
1 parent 6008832 commit 883f3dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tilt.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ jobs:
2222
- uses: actions/checkout@v4
2323
with:
2424
path: operator-controller
25+
- name: Get catalogd version
26+
id: get-catalogd-version
27+
run: |
28+
cd operator-controller
29+
echo "CATALOGD_VERSION=$(go list -mod=mod -m -f "{{.Version}}" github.com/operator-framework/catalogd)" >> "$GITHUB_OUTPUT"
2530
- uses: actions/checkout@v4
2631
with:
2732
repository: operator-framework/catalogd
2833
path: catalogd
34+
ref: "${{ steps.get-catalogd-version.outputs.CATALOGD_VERSION }}"
2935
- name: Install Tilt
3036
run: |
3137
TILT_VERSION="0.33.3"

0 commit comments

Comments
 (0)