Skip to content

Commit

Permalink
fix: correct ci report gh cli invocation (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
reubeno authored Jul 14, 2024
1 parent 981ea71 commit 3c53eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
head_repo_owner=$(echo '${{ steps.find-run.outputs.data }}' | jq -r '.head_repository.owner.login')
if [[ "${head_branch}" != "" && "${head_repo}" != "" ]]; then
pr_number="$(gh pr list --state open --json number,headRefName,headRepositoryOwner,headRepository,baseRefName -q "map(select(.headRefName == \"${head_branch}\" and .headRepositoryOwner.login == \"${head_repo_owner}\" and .baseRefName == \"main\")) | .[0].number" || true)"
pr_number="$(gh pr list -R ${{ github.repository }} --state open --json number,headRefName,headRepositoryOwner,headRepository,baseRefName -q "map(select(.headRefName == \"${head_branch}\" and .headRepositoryOwner.login == \"${head_repo_owner}\" and .baseRefName == \"main\")) | .[0].number" || true)"
else
pr_number=""
fi
Expand Down

0 comments on commit 3c53eb3

Please sign in to comment.