thesis / github-action-create-annotations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Action - Create Annotations

Use this action to create annotations during a GitHub Workflow action.

Create annotations with the structure as reported in https://docs.github.com/en/free-pro-team@latest/rest/reference/checks#annotations-items

Example

If you are using this within a job that should report the results directly, you can use:

    - name: Upload linting results
      uses: kibalabs/github-action-create-annotations@main
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        json-file-path: ./lint-results.json

If you'd like to use this within a longer job and report the results as a separate check, use this:

    - name: Upload typing results
      uses: kibalabs/github-action-create-annotations@main
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        json-file-path: ./typing-results.json
        check-name: type-package
        fail-on-error: false

See other Kiba Labs repositories for more examples.

About

License:MIT License


Languages

Language:TypeScript 89.4%Language:JavaScript 8.4%Language:Dockerfile 2.2%