File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,17 @@ jobs:
1414 - name : Delete preview deployments
1515 run : |
1616 deployments=$(gh api "/repos/elastic/docs-builder/deployments?environment=preview-${{ github.event.pull_request.number }}" \
17- -H " Accept: application/vnd.github+json" \
18- -H " X-GitHub-Api-Version: 2022-11-28" \
17+ -H ' Accept: application/vnd.github+json' \
18+ -H ' X-GitHub-Api-Version: 2022-11-28' \
1919 | jq -r '.[] | .id')
2020
2121 for deployment in $deployments; do
2222 gh api "/repos/elastic/docs-builder/deployments/$deployment/statuses" \
2323 -X POST \
24- -H " Accept: application/vnd.github+json" \
25- -H " X-GitHub-Api-Version: 2022-11-28" \
26- -f state=" inactive" \
27- -f description=" Marking deployment as inactive"
24+ -H ' Accept: application/vnd.github+json' \
25+ -H ' X-GitHub-Api-Version: 2022-11-28' \
26+ -f ' state=inactive' \
27+ -f ' description=Marking deployment as inactive'
2828
2929 gh api "/repos/elastic/docs-builder/deployments/$deployment" -X DELETE
3030 done
Original file line number Diff line number Diff line change 2727 -f 'ref=${{ github.event.pull_request.head.ref }}' \
2828 -f 'environment=preview-${{ github.event.pull_request.number }}' \
2929 -f 'description=Preview deployment for PR ${{ github.event.pull_request.number }}' \
30- -f ' auto_merge=false' \
31- -f ' required_contexts=[]' \
30+ -f auto_merge=false \
31+ -f required_contexts=[] \
3232 --jq '.id')
3333
3434 gh api "/repos/${{ github.repository }}/deployments/$deployment_id/statuses" \
You can’t perform that action at this time.
0 commit comments