Skip to content

Commit

Permalink
feat: default github-token to github.token (#7)
Browse files Browse the repository at this point in the history
* feat: default `github-token` to `github.token`

* Update README.md
  • Loading branch information
MichaelDeBoey committed May 9, 2021
1 parent ed8844d commit 731cce0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions README.md
Expand Up @@ -38,7 +38,7 @@ All parameters are optional, except `github-token`.

- **`github-token`**
- GitHub access token, value must be `${{ github.token }}`
- Required
- Optional, defaults to `${{ github.token }}`
- **`support-label`**
- Label used to mark issues as support requests
- Optional, defaults to `support`
Expand Down Expand Up @@ -79,8 +79,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: dessant/support-requests@v2
with:
github-token: ${{ github.token }}
```

### Available input parameters
Expand All @@ -101,7 +99,6 @@ jobs:
steps:
- uses: dessant/support-requests@v2
with:
github-token: ${{ github.token }}
support-label: 'support'
issue-comment: >
:wave: @{issue-author}, we use the issue tracker exclusively
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Expand Up @@ -4,7 +4,8 @@ author: 'Armin Sebastian'
inputs:
github-token:
description: 'GitHub access token'
required: true
required: false
default: ${{ github.token }}
support-label:
description: 'Label used to mark issues as support requests'
default: 'support'
Expand Down

0 comments on commit 731cce0

Please sign in to comment.