No description
  • HCL 78.5%
  • TypeScript 21.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kerim Satirli 6e88df50dd
Version updates (#54)
* bumps GH Actions versions

* bumps example Nomad version from `1.8.0` to `2.0.0`

* bumps Node packages

* linting

* aligns versions with other HC GHAs

* corrects Superlinter org from `github` to `super-linter`

* linting

* linting

* implements @copilot feedback
2026-06-26 08:35:08 -04:00
.github Version updates (#54) 2026-06-26 08:35:08 -04:00
dist Version updates (#54) 2026-06-26 08:35:08 -04:00
src [COMPLIANCE] Add/Update Copyright Headers (#52) 2026-04-02 08:39:27 +05:30
test [COMPLIANCE] Add/Update Copyright Headers (#52) 2026-04-02 08:39:27 +05:30
.copywrite.hcl Version updates (#54) 2026-06-26 08:35:08 -04:00
.gitignore Maintenance (#12) 2024-05-06 21:45:43 +02:00
.prettierrc.json Version updates (#54) 2026-06-26 08:35:08 -04:00
action.yml Version updates (#54) 2026-06-26 08:35:08 -04:00
CODEOWNERS Security updates (#14) 2024-05-10 14:38:36 +02:00
LICENSE Version updates (#54) 2026-06-26 08:35:08 -04:00
package-lock.json Version updates (#54) 2026-06-26 08:35:08 -04:00
package.json Version updates (#54) 2026-06-26 08:35:08 -04:00
README.md Version updates (#54) 2026-06-26 08:35:08 -04:00
tsconfig.json adds Action logic 2023-02-23 12:48:32 +01:00

GitHub Action: setup-nomad

The hashicorp/setup-nomad Action sets up the Nomad CLI in your GitHub Actions workflow by adding the nomad binary to PATH.

GitHub Action: Self-Test

Table of Contents

Requirements

This GitHub Actions supports all commands that are available in the nomad CLI.

Specific nomad commands may require access to provider-specific credentials.

Usage

Create a GitHub Actions Workflow file (e.g.: .github/workflows/nomad.yml):

name: nomad

on:
  push:

env:
  PRODUCT_VERSION: "2.0.0" # or: "latest"

jobs:
  nomad:
    runs-on: ubuntu-latest
    name: Run Nomad
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup `nomad`
        uses: hashicorp/setup-nomad@main
        id: setup
        with:
          version: ${{ env.PRODUCT_VERSION }}

      - name: Run `nomad version`
        id: version
        run: "nomad version"

In the above example, the following definitions have been set.

  • The event trigger has been set to push. For a complete list, see Events that trigger workflows.
  • The origin of this GitHub Action has been set as hashicorp/setup-nomad@main. For newer versions, see the Releases.
  • The version of nomad to set up has been set as 2.0.0. For a complete list, see releases.hashicorp.com.

These definitions may require updating to suit your deployment, such as specifying self-hosted runners.

Additionally, you may configure outputs to consume return values from the Action's operations.

Inputs

This section contains a list of all inputs that may be set for this Action.

  • version - (required) The version of nomad to install. Defaults to latest if unset.

Note

To retrieve the latest version, this GitHub Action polls the HashiCorp Releases API and finds the latest released version of Nomad that isn't marked as a pre-release (is_prerelease).

Outputs

This section contains a list of all outputs that can be consumed from this Action.

  • version - The version of nomad that was installed.

Author Information

This GitHub Action is maintained by the contributors listed on GitHub.

License

Licensed under the Apache License, Version 2.0 (the "License").

You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, without WARRANTIES or conditions of any kind, either express or implied.

See the License for the specific language governing permissions and limitations under the License.