-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[infra] Integrate with external PR preview system #19838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
stephenmcgruer
merged 7 commits into
web-platform-tests:master
from
bocoup:infra-ng-pr-preview
Nov 20, 2019
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c427ebf
[infra] Integrate with external PR preview system
jugglinmike 854be5a
fixup! [infra] Integrate with external PR preview system
jugglinmike f5c7cb9
fixup! [infra] Integrate with external PR preview system
jugglinmike 4988be1
fixup! [infra] Integrate with external PR preview system
jugglinmike b7f86cb
fixup! [infra] Integrate with external PR preview system
jugglinmike 2775f47
fixup! [infra] Integrate with external PR preview system
jugglinmike 8bbdd76
fixup! [infra] Integrate with external PR preview system
jugglinmike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| name: pr-preview-detect | ||
| on: deployment | ||
| jobs: | ||
| detect-deployment: | ||
| runs-on: ubuntu-18.04 | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| # By default, the "checkout" Action will attempt to check out the | ||
| # revision to be deployed. Because it does not fetch GitHub Pull Request | ||
| # branches, this will fail. | ||
| with: | ||
| ref: refs/heads/master | ||
| - name: Install dependency | ||
| run: pip install requests | ||
| - name: Detect deployment | ||
| run: | ||
| ./tools/ci/pr_preview.py | ||
| --host https://api.github.com | ||
| --github-project web-platform-tests/wpt | ||
| detect | ||
| --target https://wptpr.live | ||
| --timeout 600 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: pr-preview-sync | ||
| on: | ||
| schedule: | ||
| - cron: */5 * * * * | ||
| jobs: | ||
| update-pr-preview: | ||
| runs-on: ubuntu-18.04 | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
jugglinmike marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: Install dependency | ||
| run: pip install requests | ||
| - name: Synchronize state | ||
| 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 | ||
foolip marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # "DEPLOY_TOKEN" in this GitHub project. | ||
| # | ||
| # [1] https://help.github.com/en/github/automating-your-workflow-with-github-actions/events-that-trigger-workflows | ||
| GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.