Skip to content

Commit

Permalink
action: Use github.action_path when accessing cilium.sh
Browse files Browse the repository at this point in the history
Use ${{ github.action_path }} [^1] when accessing cilium.sh. Otherwise
this action cannot find the file when it's used in a different repo.

[^1]: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
michi-covalent committed Jul 2, 2024
1 parent b5a0a58 commit eac2646
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 @@ -108,7 +108,7 @@ runs:
done
export CILIUM_CLI_IMAGE_REPO=${{ inputs.image-repo }}
export CILIUM_CLI_IMAGE_TAG=${{ inputs.image-tag }}
cat .github/tools/cilium.sh | envsubst > /tmp/cilium
cat ${{ github.action_path }}/.github/tools/cilium.sh | envsubst > /tmp/cilium
sudo install /tmp/cilium ${{ inputs.binary-dir }}/${{ inputs.binary-name }}
- name: Run Cilium CLI Version
Expand Down

0 comments on commit eac2646

Please sign in to comment.