From a13984df3adf3575ce9839a4fb81e3f91c462bd7 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 19 Nov 2024 18:17:36 -0500 Subject: [PATCH] fix: strip out a trailing \/n from input tokens --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a280db87c..b3ec2321f 100644 --- a/action.yml +++ b/action.yml @@ -176,7 +176,7 @@ runs: else if [ -n ${{ inputs.token }} ]; then - CC_TOKEN=${{ inputs.token }} + CC_TOKEN=$(echo ${{ inputs.token }} | tr -d '\n') echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV" fi fi