Skip to content

Commit

Permalink
[Release 1.14] Fix the publish github action (#3324)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nunnatsa authored Mar 3, 2025
1 parent 21014fe commit 27d192f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-community-operators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
fi
echo "TARGET_BRANCH=${TARGET_BRANCH}" >> $GITHUB_ENV
echo "TAGGED_VERSION=${TAGGED_VERSION}" >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Checkout the latest code of ${{ env.TARGET_BRANCH }} branch
uses: actions/checkout@v4
with:
ref: ${{ env.TARGET_BRANCH }}
fetch-depth: 2
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Get latest version on ${{ env.TARGET_BRANCH }} branch
run: |
PACKAGE_DIR="./deploy/olm-catalog/community-kubevirt-hyperconverged"
Expand Down

0 comments on commit 27d192f

Please sign in to comment.