aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorPeter Serwylo <peter@serwylo.com>2022-11-16 13:35:12 +1100
committerPeter Serwylo <peter@serwylo.com>2022-11-16 23:50:40 +1100
commit56aee55f9bea40adc1edc725881192f325312c19 (patch)
tree2776dc9df27ee17ea0c97302b711d9b137dc1fa1 /.github
parent62919ac81eb856a15c0131f3cf948bb11b2a5b1f (diff)
downloadnextcloud-server-56aee55f9bea40adc1edc725881192f325312c19.tar.gz
nextcloud-server-56aee55f9bea40adc1edc725881192f325312c19.zip
Fix github action "performance-8.0" when PR is from a fork.
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>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/performance.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml
index e5cbac5fe8f..b05390772cf 100644
--- a/.github/workflows/performance.yml
+++ b/.github/workflows/performance.yml
@@ -51,8 +51,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