Skip to content

Commit

Permalink
feat: removes github-token need
Browse files Browse the repository at this point in the history
  • Loading branch information
simonecorsi committed May 11, 2022
1 parent 90a2e06 commit 0dc2a51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ You can see an example of the output at my own [simonecorsi/awesome](https://git

The service can be configured setting the appropriate environment variables or writing an `.env` file.

| Variable | Description | Default |
| ----------------- | -------------------------------------------------------- | -------------------------------- |
| `api-token` | Personal github api token. | `${{ secrets.API_TOKEN }}` |
| `github-token` | This is the default github token used to commit and push | `${{ secrets.GITHUB_TOKEN }}` |
| `github-name` | Name used for the commit | Github Action |
| `github-email` | email used for commit | actions@users.noreply.github.com |
| `template-path` | Custom `README.md` template, [read more](#template-path) |
| `output-filename` | Output filename | `README.md` |
| Variable | Description | Default |
| ----------------- | ------------------------------------------------------------------- | -------------------------------- |
| `api-token` | Personal Token is used to avoid rate limit, [read more](#api-token) | `${{ secrets.API_TOKEN }}` |
| `github-name` | Name used for the commit | Github Action |
| `github-email` | email used for commit | actions@users.noreply.github.com |
| `template-path` | Custom `README.md` template, [read more](#template-path) |
| `output-filename` | Output filename | `README.md` |

#### `api-token`

Expand Down
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ branding:
icon: align-justify
color: yellow
inputs:
github-token:
description: 'Github token'
required: true
api-token:
description: 'Personal API Token'
required: true
Expand Down
2 changes: 1 addition & 1 deletion src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type File = {

class Git {
constructor() {
const githubToken = core.getInput('github-token', { required: true });
const githubToken = core.getInput('api-token', { required: true });
core.setSecret(githubToken);

const githubName = core.getInput('github-name') || 'GitHub Actions';
Expand Down

0 comments on commit 0dc2a51

Please sign in to comment.