We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08dc8f8 commit a726af4Copy full SHA for a726af4
1 file changed
.github/workflows/update_pr_copyright_years.yml
@@ -69,11 +69,14 @@ jobs:
69
-H "Authorization: Bearer $GITHUB_TOKEN" \
70
"https://api.github.com/repos/stdlib-js/stdlib/pulls/${{ inputs.pull_request_number }}")
71
72
- # Extract the needed details
+ # Escape control characters:
73
+ pr_response=$(echo "$pr_response" | tr -d '\000-\031')
74
+
75
+ # Extract the needed details:
76
pr_branch=$(echo "$pr_response" | jq -r '.head.ref') # PR's branch
77
pr_repo_full_name=$(echo "$pr_response" | jq -r '.head.repo.full_name') # PR's repo full name
78
- # Set outputs for the branch and repository
79
+ # Set outputs for the branch and repository:
80
echo "branch=$pr_branch" >> $GITHUB_OUTPUT
81
echo "repository=$pr_repo_full_name" >> $GITHUB_OUTPUT
82
0 commit comments