feat: removes github-token need

This commit is contained in:
GitHub Actions 2022-05-11 16:22:16 +02:00
parent 90a2e06350
commit 0dc2a51ddf
No known key found for this signature in database
GPG Key ID: 0F5535005610947A
3 changed files with 8 additions and 12 deletions

View File

@ -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`

View File

@ -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

View File

@ -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';