Skip to content
Closed
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
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ jobs:
uses: getsentry/action-setup-cli@70d7e587b84c2e78cf4d37cd33d7b74fb3729c1b # v1

- name: Upload Snapshots to Sentry
# Skip on PRs from forks, which don't have access to the upload secret
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
run: |
# PRs from forks and Dependabot PRs have no access to the upload secret
if [ -z "$SENTRY_AUTH_TOKEN" ]; then
echo "SENTRY_AUTH_TOKEN is not available, skipping snapshot upload"
exit 0
fi
sentry-cli snapshots upload ./sentry-android-core/build/test-snapshots \
--app-id sentry-android-core
env:
Expand Down
Loading