Skip to content

Commit

Permalink
✨ Add upload feature
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanderleek committed Feb 22, 2024
1 parent e79df30 commit 8ba3151
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 137 deletions.
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
# codelimit-action
# codelimit-action

To run Code Limit on every push and before every merge to main, append it to your GH Action workflow:

```yaml
name: 'main'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: 'Checkout sources'
uses: actions/checkout@v4
- name: 'Run Code Limit'
uses: getcodelimit/codelimit-action@main
```
## Upload report
To upload the report to Code Limit, add the following step to your workflow:
```yaml
- name: 'Run Code Limit'
uses: getcodelimit/codelimit-action@main
with:
upload: true
token: ${{ secrets.GITHUB_TOKEN }}
```
Loading

0 comments on commit 8ba3151

Please sign in to comment.