diff --git a/.github/workflows/AI_Agent_review.yml b/.github/workflows/AI_Agent_review.yml index b075ab11f..2a5f20065 100644 --- a/.github/workflows/AI_Agent_review.yml +++ b/.github/workflows/AI_Agent_review.yml @@ -15,6 +15,7 @@ jobs: id: extract run: | echo "##[set-output name=owner;]$(echo '${{ github.repository }}' | cut -d'/' -f1)" + echo "repo_name=${GITHUB_REPOSITORY#*/}" >> $GITHUB_OUTPUT - name: Call Lambda with PR Details run: | @@ -27,7 +28,7 @@ jobs: "pr_number": "${{ github.event.pull_request.number }}", "base_branch": "${{ github.event.pull_request.base.ref }}", "main_branch": "${{ github.event.pull_request.head.ref }}", - "repo": "${{ github.repository }}", + "repo": "${{ steps.extract.outputs.repo_name }}", "git_token": "${{ secrets.PAT_TOKEN }}" }' env: