Does not work on centos runners
This actions does not work on CentOS-Runners. You should mention this in the Readme, so people are not confused if the action fails to run.
Since GitHub isn't providing CentOS based runners I'm assuming you're using self hosted runners. Which means I can't do anything to fix it without error messages. But did you install nodejs on your runners before using this action?
Oh yes, you're right. The Error message is dpkg: Command not found.
Ow yeah that makes sense. dpkg is used to figure out the processor architecture the action runs on to download kubectl. it runs dpkg --print-architecture what would be the command for that in CentOS? Need either amd64 or arm64 as outcome of the command.
Alternatively I'll use something like: https://github.com/helm/helm/blob/main/scripts/get-helm-3#L35-L47