diff --git a/.github/workflows/test-org-fork-checkout.yml b/.github/workflows/test-org-fork-checkout.yml index b52b254c1210..7666ed2e4fa1 100644 --- a/.github/workflows/test-org-fork-checkout.yml +++ b/.github/workflows/test-org-fork-checkout.yml @@ -11,14 +11,12 @@ on: jobs: test-checkout-and-merge: runs-on: ubuntu-latest - steps: - name: Checkout ci-gha-workflow uses: actions/checkout@v4 with: repository: opencv/ci-gha-workflow ref: main - - name: Debug PR payload shell: bash run: | @@ -32,8 +30,8 @@ jobs: uses: ./checkout-and-merge with: target_branch: "${{ github.event.pull_request.base.ref }}" - author: "${{ github.event.pull_request.head.repo.owner.login }}" - source_branch: "${{ github.event.pull_request.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: '' home: '${{ github.workspace }}' workdir: '${{ github.workspace }}'