From 83ccfac51cb0c1338096b3ea027e0140bc2ff184 Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Sat, 1 Apr 2023 02:57:08 +0400 Subject: [PATCH] Pass CR_TOKEN via input Signed-off-by: MOZGIII --- action.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 3521e64..9286ea0 100644 --- a/action.yml +++ b/action.yml @@ -29,11 +29,17 @@ inputs: description: Mark the created GitHub release as 'latest' required: false default: true + token: + description: Token to use when accessing Github APIs + required: false + default: ${{ secrets.GITHUB_TOKEN }} runs: using: composite steps: - - run: | + - env: + CR_TOKEN: ${{ inputs.token }} + run: | owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY") repo=$(cut -d '/' -f 2 <<< "$GITHUB_REPOSITORY")