Added a default github_token (#91)
* Added a default github_token * Update README.md * Update README.md * Update README.md * Update action.yml Co-authored-by: Adam Dobrawy <ad-m@users.noreply.github.com> Co-authored-by: Adam Dobrawy <ad-m@users.noreply.github.com>
This commit is contained in:
parent
057a6ba835
commit
cbec6b6085
@ -43,12 +43,12 @@ jobs:
|
||||
|
||||
| name | value | default | description |
|
||||
| ---- | ----- | ------- | ----------- |
|
||||
| github_token | string | | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`. |
|
||||
| branch | string | (default) | Destination branch to push changes. Can be passed in using `${{ github.ref }}`. |
|
||||
| github_token | string | `${{ github.token }}` | [GITHUB_TOKEN](https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#using-the-github_token-in-a-workflow) or a repo scoped [Personal Access Token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token). |
|
||||
| branch | string | (default) | Destination branch to push changes. <br /> Can be passed in using `${{ github.ref }}`. |
|
||||
| force | boolean | false | Determines if force push is used. |
|
||||
| tags | boolean | false | Determines if `--tags` is used. |
|
||||
| directory | string | '.' | Directory to change to before pushing. |
|
||||
| repository | string | '' | Repository name. Default or empty repository name represents current github repository. If you want to push to other repository, you should make a [personal access token](https://github.com/settings/tokens) and use it as the `github_token` input. |
|
||||
| repository | string | '' | Repository name. <br /> Default or empty repository name represents current github repository. <br /> If you want to push to other repository, you should make a <br /> [personal access token](https://github.com/settings/tokens) and use it as the `github_token` input. |
|
||||
|
||||
## License
|
||||
|
||||
|
@ -6,8 +6,9 @@ branding:
|
||||
color: green
|
||||
inputs:
|
||||
github_token:
|
||||
description: 'Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}'
|
||||
description: 'GitHub token or PAT token'
|
||||
required: true
|
||||
default: ${{ github.token }]
|
||||
repository:
|
||||
description: 'Repository name to push. Default or empty value represents current github repository (${GITHUB_REPOSITORY})'
|
||||
default: ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user