do-community / example-doctl-action

GitHub Actions for DigitalOcean Example Workflow

Home Page:https://doctl-action.do-api.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

grabilla g10584

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