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

Commit fea814e

Browse files
committed
Activate
1 parent a339551 commit fea814e

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Synchronize the Pull Request Preview
2+
on:
3+
schedule:
4+
- cron: 0/5 * * * *
5+
jobs:
6+
update-pr-preview:
7+
runs-on: ubuntu-18.04
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Install dependency
11+
run: pip install requests
12+
- name: Synchronize state
13+
run:
14+
./tools/ci/update_pr_preview.py
15+
--host https://api.github.com
16+
--github-project web-platform-tests/wpt
17+
--repository [email protected]:web-platform-tests/wpt.git
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+

tools/ci/update_pr_preview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
logger = logging.getLogger(__name__)
2929

3030
def request(method_name, url, body=None):
31-
#github_token = os.environ.get('GITHUB_TOKEN')
31+
github_token = os.environ.get('GITHUB_TOKEN')
3232

3333
kwargs = {
3434
'headers': {
35-
#'Authorization': 'token {}'.format(github_token),
35+
'Authorization': 'token {}'.format(github_token),
3636
'Accept': 'application/vnd.github.machine-man-preview+json'
3737
}
3838
}

0 commit comments

Comments
 (0)