Skip to content

Commit

Permalink
install action: Ignore .git and vendor directories
Browse files Browse the repository at this point in the history
- Ignore .git directory. There would be a directory called cilium-cli
  in .git/refs/tags if there is a Git tag that contains '/cilium-cli/'.
- Ignore vendor directory in case the Go module depends on a package
  that contains '/cilium-cli/' in the name.

Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
michi-covalent authored and jibi committed Dec 4, 2023
1 parent 14592cb commit d7df46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ runs:
id: build-cli
shell: bash
run: |
CLI_PATH=$(find . -iwholename '${{ inputs.local-path }}' -type d | head -n 1)
CLI_PATH=$(find . -iwholename '${{ inputs.local-path }}' -type d -not -path './.git/*' -not -path './vendor/*' | head -n 1)
echo path="${CLI_PATH}" >> $GITHUB_OUTPUT
- name: Setup Go
Expand Down

0 comments on commit d7df46b

Please sign in to comment.