mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Fix Netlify builds
This commit is contained in:
parent
b6bc2943d3
commit
8f7e265125
2
.github/workflows/netlify.yaml
vendored
2
.github/workflows/netlify.yaml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
head_ref='${{github.event.workflow_run.head_sha}}'
|
head_ref='${{github.event.workflow_run.head_sha}}'
|
||||||
echo "Head ref: $head_ref"
|
echo "Head ref: $head_ref"
|
||||||
pulls_uri="https://api.github.com/repos/${{ github.repository }}/pulls?head=$(jq -Rr '@uri' <<<$head_branch)"
|
pulls_uri="https://api.github.com/repos/${{ github.repository }}/pulls?head=$(jq -Rr '@uri' <<<$head_branch)"
|
||||||
pr_number = $(curl -s -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' "$pulls_uri" | jq -r '.[] | .number)
|
pr_number = $(curl -s -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' "$pulls_uri" | jq -r .[] | .number)
|
||||||
echo "PR number: $pr_number"
|
echo "PR number: $pr_number"
|
||||||
echo "::set-output name=prnumber::$pr_number"
|
echo "::set-output name=prnumber::$pr_number"
|
||||||
echo "::set-output name=headref::$head_ref"
|
echo "::set-output name=headref::$head_ref"
|
||||||
|
Loading…
Reference in New Issue
Block a user