Skip to content

Commit 85c8e08

Browse files
committed
🐛 default to go 1.25
Signed-off-by: Dylan <dymurray@redhat.com>
1 parent c12d4c0 commit 85c8e08

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build-nightly-images.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ jobs:
7272
shell: bash
7373
run: |
7474
GO_MOD_DIR="${{ matrix.image.go_mod_directory || '.' }}"
75-
GO_VERSION=$(grep '^go ' "${GO_MOD_DIR}/go.mod" | awk '{print $2}')
76-
echo "go_version=${GO_VERSION}" >> $GITHUB_OUTPUT
75+
if [ -f "${GO_MOD_DIR}/go.mod" ]; then
76+
GO_VERSION=$(grep '^go ' "${GO_MOD_DIR}/go.mod" | awk '{print $2}')
77+
fi
78+
echo "go_version=${GO_VERSION:-1.25}" >> $GITHUB_OUTPUT
7779
7880
- name: Setup golang
7981
uses: actions/setup-go@v6

0 commit comments

Comments
 (0)