From 492230eab5803cd7a4b2707b163b15af5a8fd5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rospars?= Date: Tue, 30 Jan 2024 14:45:21 +0100 Subject: [PATCH] Fix typo in README and add dist_token in action.yml --- README.md | 2 +- action.yml | 3 +++ gha_clone_releases/main.py | 7 +++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 92cb0e9..dd38a46 100644 --- a/README.md +++ b/README.md @@ -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` | | diff --git a/action.yml b/action.yml index 0aafbd3..011cbcf 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/gha_clone_releases/main.py b/gha_clone_releases/main.py index 44abae1..05bd865 100644 --- a/gha_clone_releases/main.py +++ b/gha_clone_releases/main.py @@ -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", @@ -188,4 +191,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file