forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (31 loc) · 1.12 KB
/
pull_request_previews.yml
File metadata and controls
31 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: pr-preview-sync
on:
schedule:
- cron: '*/5 * * * *'
jobs:
update-pr-preview:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install dependency
run: pip install requests
- name: Synchronize state
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
run:
./tools/ci/pr_preview.py
--host https://api.github.com
--github-project web-platform-tests/wpt
synchronize
--window 480
env:
# This Workflow must trigger further workflows. The GitHub-provided
# `GITHUB_TOKEN` secret is incapable of doing this [1], so a
# user-generated token must be specified instead. This token requires
# the "repo" scope, and is should be stored as a Secret named
# "DEPLOY_TOKEN" in this GitHub project.
#
# [1] https://help.github.com/en/github/automating-your-workflow-with-github-actions/events-that-trigger-workflows
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}