Skip to content

api7/setup-adc

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

Repository files navigation

中文 | English

Setup ADC

This action sets up the api7/adc CLI tool for use in GitHub Actions workflows.

Usage

Security: Pin your workflow to a specific release tag (e.g. @v1) or, for maximum immutability, a full commit SHA (e.g. @a824008085750b8e136effc585c3cd6082bd575f). Using @main is 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

Inputs

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 || '' }}

Outputs

Output Description
adc-version The installed ADC version

License

Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors