feat: removes github-token need
This commit is contained in:
parent
90a2e06350
commit
0dc2a51ddf
@ -29,9 +29,8 @@ 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.
|
The service can be configured setting the appropriate environment variables or writing an `.env` file.
|
||||||
|
|
||||||
| Variable | Description | Default |
|
| Variable | Description | Default |
|
||||||
| ----------------- | -------------------------------------------------------- | -------------------------------- |
|
| ----------------- | ------------------------------------------------------------------- | -------------------------------- |
|
||||||
| `api-token` | Personal github api token. | `${{ secrets.API_TOKEN }}` |
|
| `api-token` | Personal Token is used to avoid rate limit, [read more](#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-name` | Name used for the commit | Github Action |
|
||||||
| `github-email` | email used for commit | actions@users.noreply.github.com |
|
| `github-email` | email used for commit | actions@users.noreply.github.com |
|
||||||
| `template-path` | Custom `README.md` template, [read more](#template-path) |
|
| `template-path` | Custom `README.md` template, [read more](#template-path) |
|
||||||
|
@ -4,9 +4,6 @@ branding:
|
|||||||
icon: align-justify
|
icon: align-justify
|
||||||
color: yellow
|
color: yellow
|
||||||
inputs:
|
inputs:
|
||||||
github-token:
|
|
||||||
description: 'Github token'
|
|
||||||
required: true
|
|
||||||
api-token:
|
api-token:
|
||||||
description: 'Personal API Token'
|
description: 'Personal API Token'
|
||||||
required: true
|
required: true
|
||||||
|
@ -15,7 +15,7 @@ type File = {
|
|||||||
|
|
||||||
class Git {
|
class Git {
|
||||||
constructor() {
|
constructor() {
|
||||||
const githubToken = core.getInput('github-token', { required: true });
|
const githubToken = core.getInput('api-token', { required: true });
|
||||||
core.setSecret(githubToken);
|
core.setSecret(githubToken);
|
||||||
|
|
||||||
const githubName = core.getInput('github-name') || 'GitHub Actions';
|
const githubName = core.getInput('github-name') || 'GitHub Actions';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user