mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Fix upstreaming of WPT changes
The GitHub Action needs access to Servo repository secrets, so switch to using the 'pull_request_target' event. Since these PRs have more complete access to the Servo repository, do not execute the version of the upstream script that comes with the PR. Instead, simply fetch the changes. To make this work, the script no longer expects the PR commit to be checked out, merely that they exist in the repository somewhere.
This commit is contained in:
parent
941bd6a579
commit
a18baf6719
4 changed files with 30 additions and 10 deletions
5
.github/workflows/upstream-wpt-changes.yml
vendored
5
.github/workflows/upstream-wpt-changes.yml
vendored
|
@ -1,6 +1,6 @@
|
|||
name: WPT export
|
||||
on:
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
types: ['opened', 'synchronize', 'reopened', 'edited', 'closed']
|
||||
|
||||
jobs:
|
||||
|
@ -16,7 +16,8 @@ jobs:
|
|||
git init -b main
|
||||
git remote add origin ${{ github.event.repository.clone_url}}
|
||||
git fetch origin pull/${{ github.event.pull_request.number}}/head:pr --depth ${{ env.PR_FETCH_DEPTH }}
|
||||
git checkout pr
|
||||
git fetch origin master:master --depth 1
|
||||
git checkout master
|
||||
- name: Check out wpt
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue