Setup Promtool is a GitHub action that provides a cross-platform interface for setting up the Promtool CLI in GitHub Actions runners.
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 }}Setup the latest version of Promtool
- name: Setup Promtool
uses: nhedger/setup-promtool@v1
with:
version: latest
- name: Run Promtool
run: promtool --versionInstall version 3.4.1 of Promtool
- name: Setup Promtool
uses: nhedger/setup-promtool@v1
with:
version: 3.4.1
- name: Run Promtool
run: promtool --versionCopyright © 2025, Nicolas Hedger. Released under the MIT License.