hetznercloud / setup-hcloud

GitHub action to install the Hetzner Cloud CLI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

GitHub action to install the Hetzner Cloud CLI.

License:MIT License


Languages

Language:TypeScript 100.0%