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 |
|
| name | value | default | description |
|
||||||
| ---- | ----- | ------- | ----------- |
|
| ---- | ----- | ------- | ----------- |
|
||||||
| github_token | string | | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`. |
|
| 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. Can be passed in using `${{ github.ref }}`. |
|
| 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. |
|
| force | boolean | false | Determines if force push is used. |
|
||||||
| tags | boolean | false | Determines if `--tags` is used. |
|
| tags | boolean | false | Determines if `--tags` is used. |
|
||||||
| directory | string | '.' | Directory to change to before pushing. |
|
| 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
|
## License
|
||||||
|
|
||||||
|
@ -6,8 +6,9 @@ branding:
|
|||||||
color: green
|
color: green
|
||||||
inputs:
|
inputs:
|
||||||
github_token:
|
github_token:
|
||||||
description: 'Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}'
|
description: 'GitHub token or PAT token'
|
||||||
required: true
|
required: true
|
||||||
|
default: ${{ github.token }]
|
||||||
repository:
|
repository:
|
||||||
description: 'Repository name to push. Default or empty value represents current github repository (${GITHUB_REPOSITORY})'
|
description: 'Repository name to push. Default or empty value represents current github repository (${GITHUB_REPOSITORY})'
|
||||||
default: ''
|
default: ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user