scheibo / install-ziglint

GitHub Action to install ziglint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

install-ziglint

This is a GitHub Action to install ziglint into your GitHub Actions job.

Configuration

It automatically fetches the latest version of ziglint; perhaps in the future this Action can support specifying the desired ziglint version. This Action's version is unrelated to the ziglint version it will download.

If you specify token as an input, the action will authenticate with GitHub, reducing the chance of encountering a rate limit on the GitHub API. You can also optionally specify binary-name as an input to this Action, which will control the name that ziglint is downloaded to.

Example Usage

steps:
    - name: Check out code
      uses: actions/checkout@v2
    - name: Install ziglint
      uses: AnnikaCodes/install-ziglint@v0.1
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
    - name: Lint code
      run: ziglint
steps:
    - name: Check out code
      uses: actions/checkout@v2
    - name: Install ziglint
      uses: AnnikaCodes/install-ziglint@v0.1
      with:
        binary-name: a_wacky_name_for_the_binary
    - name: Lint code
      run: a_wacky_name_for_the_binary

About

GitHub Action to install ziglint

License:MIT License


Languages

Language:JavaScript 100.0%