We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12d4c0 commit 85c8e08Copy full SHA for 85c8e08
1 file changed
.github/workflows/build-nightly-images.yaml
@@ -72,8 +72,10 @@ jobs:
72
shell: bash
73
run: |
74
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
+ if [ -f "${GO_MOD_DIR}/go.mod" ]; then
+ GO_VERSION=$(grep '^go ' "${GO_MOD_DIR}/go.mod" | awk '{print $2}')
77
+ fi
78
+ echo "go_version=${GO_VERSION:-1.25}" >> $GITHUB_OUTPUT
79
80
- name: Setup golang
81
uses: actions/setup-go@v6
0 commit comments