Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.54 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.54 KB

setup-hcloud

CI Codecov

This action installs the Hetzner Cloud CLI in your PATH.

Usage

The environment variable HCLOUD_TOKEN is required for hcloud to work properly. See the hcloud getting started docs for details.

Setup the latest version:

steps:
  - uses: hetznercloud/setup-hcloud@v1

  - run: hcloud server-type list
    env:
      HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}

Setup a specific version:

steps:
  - uses: hetznercloud/setup-hcloud@v1
    with:
      hcloud-version: v1.41.1

  - run: hcloud server-type list
    env:
      HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}

Inputs

  • hcloud-version (Optional): Version of Hetzner Cloud CLI to install. Using latest will install the latest version of hcloud.
  • github-token (Optional): A Personal Access Token or the Github Token to access the GitHub API. If none provided it will use the default Github Token.

Outputs

  • hcloud-version: Version of the Hetzner Cloud CLI that was installed.

License

The scripts and documentation in this project are released under the MIT License