Skip to content

Commit

Permalink
Fix typo in README and add dist_token in action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrospars committed Jan 30, 2024
1 parent 3bd3aed commit 492230e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
| parameter | description | required | default |
| - | - | - | - |
| token | Github token | `true` | |
| dist_token | Github token used for destination repo. If not set, `token` parameter is used. | `false` | |
| dest_token | Github token used for destination repo. If not set, `token` parameter is used. | `false` | |
| src_repo | Source repo to clone from | `true` | |
| src_repo_github_api_url | API repo for the src_repo. Defaults to Github. Set this if using GHE | `false` | https://api.github.com |
| dest_repo | Destination repo to clone to, default is this repo | `false` | |
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
token:
description: "Github token"
required: true
dest_token:
description: "Github token used for destination repo. If not set, token parameter is used"
required: false
src_repo:
description: "Source repo to clone from"
required: true
Expand Down
7 changes: 5 additions & 2 deletions gha_clone_releases/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
###START_INPUT_AUTOMATION###
INPUTS = {
"token": {"description": "Github token", "required": True},
"dest_token": {"description": "Github token for destination repo", "required": False},
"dest_token": {
"description": "Github token used for destination repo. If not set, token parameter is used",
"required": False
},
"src_repo": {"description": "Source repo to clone from", "required": True},
"src_repo_github_api_url": {
"description": "API repo for the src_repo. Defaults to Github. Set this if using GHE",
Expand Down Expand Up @@ -188,4 +191,4 @@ def main():


if __name__ == "__main__":
main()
main()

0 comments on commit 492230e

Please sign in to comment.