Error: unknown command "doctl" for "doctl"
laukstein opened this issue · comments
https://github.com/marketplace/actions/github-action-for-digitalocean-doctl#usage has invalid details on recommending
- name: Save DigitalOcean kubeconfig
run: doctl kubernetes cluster kubeconfig save testing-cluster
When it is used Github Actions fails with error "unknown command "doctl" for "doctl"
It shouldn't contain doctl
, should be
- name: Save DigitalOcean kubeconfig
run: kubernetes cluster kubeconfig save testing-cluster
Hi @laukstein,
As shown in the first step, the example is using digitalocean/action-doctl@v2
:
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
@v2
has a different interface than @master
which maintains the old behavior in order to not break existing users.
See the release notes here: https://github.com/digitalocean/action-doctl/releases/tag/v2.0.0 and the RFC for more details on the changes: digitalocean/action-doctl#27