Skip to content

Commit 095cfe0

Browse files
fix: strip out a trailing \/n from input tokens (#1679)
1 parent b542d5a commit 095cfe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ runs:
176176
else
177177
if [ -n ${{ inputs.token }} ];
178178
then
179-
CC_TOKEN=${{ inputs.token }}
179+
CC_TOKEN=$(echo ${{ inputs.token }} | tr -d '\n')
180180
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
181181
fi
182182
fi

0 commit comments

Comments
 (0)