Skip to content

Commit 88627fe

Browse files
committed
test
1 parent 0141aba commit 88627fe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/preview-cleanup.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
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" \

0 commit comments

Comments
 (0)