gh-failed-action-commenter

Stars
5

Bot releases are visible (Hide)

gh-failed-action-commenter - v0.0.1 Latest Release

Published by juliusmarminge 11 months ago

Get started today by adding a job to your CI pipeline like this:

 comment-if-failed:
    if: ${{ always() }}
    needs: [lint, format, typecheck] # <-- what checks you wanna comment if they fail
    runs-on: ubuntu-latest
    steps:
      - uses: juliusmarminge/gh-failed-action-commenter@main
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          FIXES: '{ "format": "format:fix", "lint": "lint:fix" }' # <-- autofixable checks (json string kinda sucks i know)

See a full example here: https://github.com/t3-oss/create-t3-turbo/blob/main/.github/workflows/ci.yml