Skip to content

Commit

Permalink
Merge pull request #34 from SonicGarden/dev
Browse files Browse the repository at this point in the history
Update action.yml to make GITHUB_TOKEN optional
  • Loading branch information
aki77 authored Jun 29, 2024
2 parents 9c54bc9 + 174fa18 commit bc4d3d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ Reported in Job Summary.

### Inputs

- `token` - The GITHUB_TOKEN secret.
- `json-path` - Path to RSpec result json file. (Support for glob pattern)
See [action.yml](action.yml)

| Name | Description | Default | Required |
| - | - | - | - |
| `json-path` | Path to RSpec result json file. (Support for glob pattern) | | yes |
| `token` | GITHUB_TOKEN | `${{ github.token }}` | no |

## Example

Expand All @@ -31,7 +35,6 @@ jobs:
- name: RSpec Report
uses: SonicGarden/rspec-report-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
json-path: tmp/rspec_results.json
if: always()
```
Expand Down Expand Up @@ -92,6 +95,5 @@ jobs:
- name: RSpec Report
uses: SonicGarden/rspec-report-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
json-path: /tmp/json-reports/rspec_results-*.json
```
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ author: "aki77"
inputs:
token:
description: "Github token"
required: true
required: false
default: "${{ github.token }}"
json-path:
description: "JSON File path"
required: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rspec-report-action",
"version": "4.0.0",
"version": "4.0.1",
"private": true,
"description": "TypeScript template action",
"main": "lib/main.js",
Expand Down

0 comments on commit bc4d3d8

Please sign in to comment.