Auto merge of #29042 - servo:sync-perms, r=jdm

Work around WPT sync permission errors

Getting the permissions right to push the synced changes to servo-wpt-sync/servo and then open a PR was a bit of a nightmare. Instead, we can just push to a new branch on servo/servo and open the PR from there. Fixes #28920.
This commit is contained in:
bors-servo 2022-11-09 11:45:23 -05:00 committed by GitHub
commit ace9b32b1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,9 +122,7 @@ jobs:
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: wpt_update_${{ env.CURRENT_DATE }}
repository: servo-wpt-sync/servo
- name: Open PR
env:
GH_TOKEN: ${{ secrets.WPT_SYNC_TOKEN }}
@ -136,8 +134,5 @@ jobs:
r? @servo-wpt-sync
EOF
)
git remote add sync-fork https://github.com/servo-wpt-sync/servo.git
git fetch sync-fork ${{ env.UPDATE_BRANCH }}
git checkout ${{ env.UPDATE_BRANCH }}
# TODO: comment `@bors-servo r+` from `@servo-wpt-sync`
gh pr create --title "Sync WPT with upstream (${{ env.CURRENT_DATE }})" --body "$BODY"
gh pr create --title "Sync WPT with upstream (${{ env.CURRENT_DATE }})" --body "$BODY" --head ${{ env.UPDATE_BRANCH }}