Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 745fb3d

Browse files
committed
Switch back
1 parent 60ad6ae commit 745fb3d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/detect_pull_request_preview.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ jobs:
77
- uses: actions/checkout@v1
88
- name: Install dependency
99
run: pip install requests
10-
- name: Debug deployment
10+
- name: Detect deployment
1111
run:
12-
./tools/ci/debug_deploy.py
12+
./tools/ci/pr_preview.py
13+
--host http://api.github.com
14+
--github-project web-platform-tests/wpt-actions-test
15+
detect
16+
--target http://s92097608.onlinehome.us/tmp
17+
--timeout 600
1318
env:
1419
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}

tools/ci/pr_preview.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,13 @@ def detect(host, github_project, target, timeout):
332332
result = project.update_deployment(target, deployment, 'pending', message)
333333
logger.info(json.dumps(result, indent=2))
334334

335+
url_base = 'https://api.github.com/repos/web-platform-tests/wpt-actions-test'
336+
result = gh_request(
337+
'GET',
338+
'{}/deployments/{}/statuses'.format(url_base, deployment['id'])
339+
)
340+
logger.info('Result: %s', json.dumps(result, indent=2))
341+
335342
start = time.time()
336343

337344
while not is_deployed(target, deployment):

0 commit comments

Comments
 (0)