Skip to content

Commit

Permalink
Fixed bug with sha of PR not being checked-out because it had quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
atteggiani committed Jul 24, 2024
1 parent 8da3da0 commit 319cfe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_to_github_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
echo "Build PR websites"
open_pr_info=$(gh pr list --json headRefOid,number,headRefName --jq '.[] | select(.headRefName!="development" and .headRefName!="main")')
pr_nums=($(jq '.number' <<< "$open_pr_info"))
pr_sha=($(jq '.headRefOid' <<< "$open_pr_info"))
pr_sha=($(jq -r '.headRefOid' <<< "$open_pr_info"))
if [[ -n $pr_nums ]]; then
echo "Found PR numbers: $(perl -pe 's/\s(?!$)/, /g' <<< ${pr_nums[@]})."
echo "pr_nums=[$(perl -pe 's/\s(?!$)/,/g' <<< ${pr_nums[@]})]" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 319cfe2

Please sign in to comment.