Skip to content

Commit 944fd15

Browse files
authored
Strip the newline when reading prId
1 parent 9392b05 commit 944fd15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ephemeral/startup/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ runs:
5858
- name: Setup preview name
5959
shell: bash
6060
run: |
61-
prId=$(<pr-id.txt)
61+
prId=$(tr -d '\r\n' < pr-id.txt)
62+
echo "PR ID is: $prId"
6263
repoName=$GITHUB_REPOSITORY
6364
repoNameCleaned=$(echo -n "$repoName" | tr -c '[:alnum:]' '-')
6465
previewName=preview-$repoNameCleaned-$prId

0 commit comments

Comments
 (0)