1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Fix broken netlify ci (#8424)

This commit is contained in:
Michael Telatynski
2022-04-27 10:45:23 +01:00
committed by GitHub
parent 9ad93c2f5b
commit 4bcdb5e99b

View File

@@ -20,7 +20,7 @@ jobs:
head_branch='${{github.event.workflow_run.head_repository.owner.login}}:${{github.event.workflow_run.head_branch}}'
echo "head branch: $head_branch"
pulls_uri="https://api.github.com/repos/${{ github.repository }}/pulls?head=$(jq -Rr '@uri' <<<$head_branch)"
read pr_number, head_ref < <(curl -s -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' "$pulls_uri" |
read -d"" pr_number head_ref < <(curl -s -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' "$pulls_uri" |
jq -r '.[] | .number, .head.ref')
echo "PR number: $pr_number"
echo "Head ref: $head_ref"