Skip to content

Commit 21d68b4

Browse files
committed
fix origin from external
1 parent 99c13d2 commit 21d68b4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/trigger-lrz-gitlab-ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ jobs:
8989
git config user.name "github-actions[bot]"
9090
git config user.email "github-actions[bot]@users.noreply.github.com"
9191
git remote add lrz https://oauth2:${PYGINKGO_PROJECT_TOKEN}@${{ env.LRZ_HOST }}/${{ env.LRZ_GROUP }}/${{ env.REPO_NAME }}.git
92-
git fetch origin ${{ steps.branch.outputs.branch }}
93-
git checkout -B ${{ steps.branch.outputs.branch }} origin/${{ steps.branch.outputs.branch }}
94-
git reset --hard origin/${{ steps.branch.outputs.branch }}
92+
git remote add incoming ${{ github.event.pull_request.head.repo.clone_url }}
93+
git fetch incoming ${{ steps.branch.outputs.branch }}
94+
git checkout -B ${{ steps.branch.outputs.branch }} incoming/${{ steps.branch.outputs.branch }}
95+
git reset --hard incoming/${{ steps.branch.outputs.branch }}
9596
git push --force lrz HEAD:refs/heads/${{ steps.branch.outputs.branch }}
9697
9798
- name: Cancel running/pending pyGinkgo LRZ CI pipelines

0 commit comments

Comments
 (0)