Skip to content
Open
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
14 changes: 12 additions & 2 deletions .github/workflows/ios_sentry_upload_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Sentry PR iOS Upload (Size Analysis)

on:
pull_request:
branches: [main]
paths: [ios/**, .github/workflows/ios_sentry_upload_pr.yml]

jobs:
Expand Down Expand Up @@ -30,5 +29,16 @@ jobs:
run: |
set -e -o pipefail
BASE_REF="origin/${{ github.base_ref }}"
BASE_SHA=$(git merge-base "$BASE_REF" HEAD 2>/dev/null)
if [[ "${{ github.base_ref }}" == "$DEFAULT" ]]; then
# Normal PR
BASE_SHA="$(git merge-base "$BASE_REF" HEAD 2>/dev/null || git merge-base HEAD "$BASE_REF")"
else
# Stacked PR
BASE_SHA="$(git rev-parse "$BASE_REF")"
fi
echo "BASE_SHA=$BASE_SHA"

- name: Fork
shell: bash
run: |
echo "test"