Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup-knative/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ runs:
elif [ "${REPO}" == "eventing" -a "${{ inputs.eventing-version }}" != "" ]; then
REAL_KNATIVE_VERSION="knative-v${{ inputs.eventing-version }}"
elif [ ${{ inputs.version }} == "latest" ]; then
REAL_KNATIVE_VERSION=$(git ls-remote --tags --refs https://github.com/knative/${REPO} | awk '{print $2}' | sed 's/refs\/tags\/.*v//g' | sort -V | tail -1)
VERSION=$(git ls-remote --tags --refs https://github.com/knative/${REPO} | awk '{print $2}' | sed 's/refs\/tags\/.*v//g' | sort -V | tail -1)
REAL_KNATIVE_VERSION="knative-v${VERSION}"
# It will match only if the input is something like `1.2.x` if there is any trailing chars (`1.2.xa`) that will not match
elif [[ ${{ inputs.version }} == *".x" ]]; then
INPUT=$(echo ${{ inputs.version }} | sed 's/.x//g')
Expand Down
Loading