Skip to content

Commit

Permalink
Fix github action "performance-8.0" when PR is from a fork.
Browse files Browse the repository at this point in the history
There is an assumption that the PR is from the same remote as
the base it is being merged into. This is fixed so that instead
of doing a `git fetch origin`, it now fetches from the `clone_url`
of the PR head.

Signed-off-by: Peter Serwylo <peter@serwylo.com>
  • Loading branch information
pserwylo authored and backportbot-nextcloud[bot] committed Jan 19, 2023
1 parent 34b25b8 commit 52f8256
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ jobs:

- name: Apply PR
run: |
git fetch origin ${{ github.event.pull_request.head.ref }}
git checkout ${{ github.event.pull_request.head.ref }}
git remote add pr ${{ github.event.pull_request.head.repo.clone_url }}
git fetch pr ${{ github.event.pull_request.head.ref }}
git checkout -b pr/${{ github.event.pull_request.head.ref }}
git submodule update
./occ upgrade
Expand Down

0 comments on commit 52f8256

Please sign in to comment.