Skip to content

Commit

Permalink
Default token to github.token
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans committed Apr 4, 2020
1 parent adbc618 commit 8699892
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ciff-example-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
- name: Create Issue From File
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: An example issue
content-filepath: ./example-content/output.md
labels: report, automated issue
Expand All @@ -20,7 +19,6 @@ jobs:
- name: Add reaction
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
reaction-type: hooray
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ If the file does not exist the action exits silently.
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: An example issue
content-filepath: ./example-content/output.md
labels: report, automated issue
Expand All @@ -26,6 +25,7 @@ If the file does not exist the action exits silently.
#### Inputs
- `token` - `GITHUB_TOKEN` or a `repo` scoped [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). Defaults to `GITHUB_TOKEN`.
- `title` (**required**) - The title of the issue
- `content-filepath` (**required**) - The file path to the issue content
- `labels` - A comma separated list of labels
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'An action to create an issue using content from a file'
inputs:
token:
description: 'The GitHub authentication token'
required: true
default: ${{ github.token }}
title:
description: 'The title of the issue.'
required: true
Expand Down

0 comments on commit 8699892

Please sign in to comment.