中文 | English
This action sets up the api7/adc CLI tool for use in GitHub Actions workflows.
Security: Pin your workflow to a specific release tag (e.g.
@v1) or, for maximum immutability, a full commit SHA (e.g.@a824008085750b8e136effc585c3cd6082bd575f). Using@mainis convenient for development but may introduce breaking changes unexpectedly.
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: api7/setup-adc@v1
id: setup
with:
version: 0.25.0 # optional, defaults to latest
- run: adc --version
- run: adc ping| Input | Description | Required | Default |
|---|---|---|---|
version |
Version of ADC to install (e.g. 0.25.0, latest) |
No | latest |
token |
GitHub token for API requests. Typically not supplied by the user — the default is sufficient on github.com. On GHES, pass a PAT if rate limited. | No | ${{ github.server_url == 'https://github.com' && github.token || '' }} |
| Output | Description |
|---|---|
adc-version |
The installed ADC version |
Apache-2.0