-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: strip out a trailing \/n from input tokens (#1679)
- Loading branch information
1 parent
b542d5a
commit 095cfe0
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This needs quoting
CC_TOKEN=$(echo "${{ inputs.token }}" | tr -d '\n')
.Without quotes the
inputs.token
is expanded when the script is composed, causing the newline to be rendered before the echo runs, like:That causes bash to throw syntax error. With quotes that wouldn't be a problem as the newline would be rendered as part of the argument of echo.