Skip to content

Commit 9371efb

Browse files
committed
ci: Revert to guarding the snapshot upload on an empty auth token
1 parent 25f003a commit 9371efb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ jobs:
4949
uses: getsentry/action-setup-cli@70d7e587b84c2e78cf4d37cd33d7b74fb3729c1b # v1
5050

5151
- name: Upload Snapshots to Sentry
52-
# Skip on PRs from forks and from Dependabot, which don't have access to the upload secret
53-
if: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') }}
5452
run: |
53+
# PRs from forks and Dependabot PRs have no access to the upload secret
54+
if [ -z "$SENTRY_AUTH_TOKEN" ]; then
55+
echo "SENTRY_AUTH_TOKEN is not available, skipping snapshot upload"
56+
exit 0
57+
fi
5558
sentry-cli snapshots upload ./sentry-android-core/build/test-snapshots \
5659
--app-id sentry-android-core
5760
env:

0 commit comments

Comments
 (0)