Skip to content

Commit cbec6b6

Browse files
jackton1ad-m
andauthored
Added a default github_token (ad-m#91)
* Added a default github_token * Update README.md * Update README.md * Update README.md * Update action.yml Co-authored-by: Adam Dobrawy <[email protected]> Co-authored-by: Adam Dobrawy <[email protected]>
1 parent 057a6ba commit cbec6b6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ jobs:
4343
4444
| name | value | default | description |
4545
| ---- | ----- | ------- | ----------- |
46-
| github_token | string | | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`. |
47-
| branch | string | (default) | Destination branch to push changes. Can be passed in using `${{ github.ref }}`. |
46+
| 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). |
47+
| branch | string | (default) | Destination branch to push changes. <br /> Can be passed in using `${{ github.ref }}`. |
4848
| force | boolean | false | Determines if force push is used. |
4949
| tags | boolean | false | Determines if `--tags` is used. |
5050
| directory | string | '.' | Directory to change to before pushing. |
51-
| 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. |
51+
| 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. |
5252

5353
## License
5454

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ branding:
66
color: green
77
inputs:
88
github_token:
9-
description: 'Token for the repo. Can be passed in using $\{{ secrets.GITHUB_TOKEN }}'
9+
description: 'GitHub token or PAT token'
1010
required: true
11+
default: ${{ github.token }]
1112
repository:
1213
description: 'Repository name to push. Default or empty value represents current github repository (${GITHUB_REPOSITORY})'
1314
default: ''

0 commit comments

Comments
 (0)