Skip to content

Commit 27d192f

Browse files
authored
[Release 1.14] Fix the publish github action (#3324)
The "Publish Tagged Version to Community Operators" github action fails because when setting up golang, we want to use golang version from the the go.mod file, but this is checked out only in the next step. Fix by replacing the order of the step, so we first checking out the code and only then setting up golang. Signed-off-by: Nahshon Unna-Tsameret <[email protected]>
1 parent 21014fe commit 27d192f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish-community-operators.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
fi
3232
echo "TARGET_BRANCH=${TARGET_BRANCH}" >> $GITHUB_ENV
3333
echo "TAGGED_VERSION=${TAGGED_VERSION}" >> $GITHUB_ENV
34-
- name: Setup Go
35-
uses: actions/setup-go@v5
36-
with:
37-
go-version-file: go.mod
3834
- name: Checkout the latest code of ${{ env.TARGET_BRANCH }} branch
3935
uses: actions/checkout@v4
4036
with:
4137
ref: ${{ env.TARGET_BRANCH }}
4238
fetch-depth: 2
39+
- name: Setup Go
40+
uses: actions/setup-go@v5
41+
with:
42+
go-version-file: go.mod
4343
- name: Get latest version on ${{ env.TARGET_BRANCH }} branch
4444
run: |
4545
PACKAGE_DIR="./deploy/olm-catalog/community-kubevirt-hyperconverged"

0 commit comments

Comments
 (0)