Skip to content

nhedger/setup-promtool

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Promtool in GitHub Actions

GitHub release (latest SemVer) Test Integrate

Setup Promtool is a GitHub action that provides a cross-platform interface for setting up the Promtool CLI in GitHub Actions runners.

Inputs

The following inputs are supported.

- name: Setup Promtool
  uses: nhedger/setup-promtool@v1
  with:

    # The version of Prometheus for which to install the Promtool CLI.
    # This input is optional and by default the version will be automatically
    # detected from the project's dependencies. If no version is specified, the # latest version of Promtool will be installed.
    # Example values: "3.4.1", "latest"
    version: ""

    # The GitHub token to use to authenticate GitHub API requests.
    # This input is optional and defaults to the job's GitHub token.
    # Example value: ${{ secrets.GITHUB_TOKEN }}
    token: ${{ github.token }}

Examples

Latest version

Setup the latest version of Promtool

- name: Setup Promtool
  uses: nhedger/setup-promtool@v1
  with:
    version: latest

- name: Run Promtool
  run: promtool --version

Specific version

Install version 3.4.1 of Promtool

- name: Setup Promtool
  uses: nhedger/setup-promtool@v1
  with:
    version: 3.4.1

- name: Run Promtool
  run: promtool --version

License

Copyright © 2025, Nicolas Hedger. Released under the MIT License.

About

✅ Setup Promtool in GitHub Actions

Resources

Stars

Watchers

Forks

Sponsor this project