Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
feat(repo): improve readme (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
fersilva16 authored Aug 10, 2022
1 parent 79f4355 commit 531bf33
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
# TypeScript report action

GitHub Action to report TypeScript errors in Pull Requests

![Example](https://i.imgur.com/pfI3zw1.png)

## Usage

### Only running in change files

```yml
- name: Get changed typescript files
id: changed-typescript-files
uses: tj-actions/changed-files@v20
with:
base_sha: ${{ github.event.pull_request.base.sha }}
files: |
**/*.ts
**/*.tsx
- name: TypeScript report
if: steps.changed-typescript-files.outputs.any_changed == 'true'
uses: fersilva16/[email protected]
with:
files: ${{ steps.changed-typescript-files.outputs.all_changed_files }}
```
### With project
```yml
- name: TypeScript report
uses: fersilva16/[email protected]
with:
project: path/to/tsconfig.json
```

0 comments on commit 531bf33

Please sign in to comment.