Skip to content

Commit 615aa8e

Browse files
action: Handle multiple cilium-cli directories
Deterministically pick a directory if local-path matches multiple directories. Signed-off-by: Michi Mutsuzaki <[email protected]>
1 parent b09eddb commit 615aa8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
id: build-cli
4545
shell: bash
4646
run: |
47-
CLI_PATH=$(find . -iwholename '${{ inputs.local-path }}' -type d -not -path './.git/*' -not -path './vendor/*' | head -n 1)
47+
CLI_PATH=$(find . -iwholename '${{ inputs.local-path }}' -type d -not -path './.git/*' -not -path './vendor/*' | sort | tail -n 1)
4848
echo path="${CLI_PATH}" >> $GITHUB_OUTPUT
4949
if [[ -z "${{ inputs.go-mod-directory }}" ]]; then
5050
echo go-mod-path="${CLI_PATH}/go.mod" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)