Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/calculate-size-delta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Searching for PR from branch '${{ github.ref_name }}'..."
PR_NUMBER=$(gh pr list --state open --head "${{ github.ref_name }}" --json number --jq '.[0].number // empty')
echo "Searching for PR from branch ${GITHUB_REF_NAME}..."
PR_NUMBER=$(gh pr list --state open --head "${GITHUB_REF_NAME}" --json number --jq '.[0].number // empty')
if [ -z "$PR_NUMBER" ]; then
echo "Not found in current repo, searching across forks..."
PR_NUMBER=$(gh pr list --state open --json number,headRefName,headRepositoryOwner --jq ".[] | select(.headRefName == \"${{ github.ref_name }}\") | .number" | head -n1)
Expand Down Expand Up @@ -148,4 +148,4 @@ jobs:
echo ""
echo "To view:"
echo "1. Go to the 'build' job above"
echo "2. Scroll to the bottom to see the Job Summary"
echo "2. Scroll to the bottom to see the Job Summary"