diff --git a/.github/workflows/OCV-PR-Linux.yaml b/.github/workflows/OCV-PR-Linux.yaml index 97ddb93b..c4384087 100644 --- a/.github/workflows/OCV-PR-Linux.yaml +++ b/.github/workflows/OCV-PR-Linux.yaml @@ -147,8 +147,8 @@ jobs: uses: ./checkout-and-merge with: target_branch: "${{ matrix.branch }}" - author: "${{ github.event.pull_request.user.login }}" - source_branch: "${{ github.event.repository.name == 'ci-gha-workflow' && '' || github.head_ref }}" + author: "${{ github.event.repository.name == 'ci-gha-workflow' && github.event.pull_request.user.login || github.event.pull_request.head.repo.owner.login }}" + source_branch: "${{ github.event.repository.name == 'ci-gha-workflow' && '' || github.event.pull_request.head.ref }}" gitcache: '/opt/git_cache' home: '${{ env.HOME }}' workdir: '${{ env.HOME }}' diff --git a/checkout-and-merge/action.yaml b/checkout-and-merge/action.yaml index 2746eba8..01fd0104 100644 --- a/checkout-and-merge/action.yaml +++ b/checkout-and-merge/action.yaml @@ -9,7 +9,7 @@ inputs: description: "Target PR branch in OpenCV repository (4.x, 5.x)" default: "4.x" author: - description: "PR author" + description: "PR source repository owner" source_branch: description: "Source PR branch" gitcache: