Skip to content

Commit 0f5d96c

Browse files
runningcodeclaude
andcommitted
Fix sentry-cli flags in test workflow
- Change --org to -o and --project to -p (correct build subcommand flags) - Move org/project flags to after build subcommand where they belong 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1aa6b53 commit 0f5d96c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test-pr-head-sha.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
ls -la test_artifacts/ || echo "No test_artifacts directory found"
6868
6969
echo "=== Running sentry-cli build upload with debug logging ==="
70-
echo "Command: ./target/release/sentry-cli --log-level debug --org test-org --project test-project build upload test_artifacts/app-debug.apk"
70+
echo "Command: ./target/release/sentry-cli --log-level debug --auth-token dummy_token_for_testing build -o test-org -p test-project upload test_artifacts/app-debug.apk"
7171
echo ""
7272
echo "🔍 WATCH FOR DEBUG LOGS BELOW:"
7373
echo "Expected debug log: 'Using GitHub Actions PR head SHA from event payload: ${{ github.event.pull_request.head.sha }}'"
@@ -76,7 +76,7 @@ jobs:
7676
7777
# Test the CLI's head-sha detection with debug logging enabled
7878
# Using a dummy auth token to get past auth check and reach the head-sha detection logic
79-
./target/release/sentry-cli --log-level debug --auth-token dummy_token_for_testing --org test-org --project test-project build upload test_artifacts/app-debug.apk || true
79+
./target/release/sentry-cli --log-level debug --auth-token dummy_token_for_testing build -o test-org -p test-project upload test_artifacts/app-debug.apk || true
8080
8181
echo "--- CLI OUTPUT END ---"
8282
@@ -96,7 +96,7 @@ jobs:
9696
unset GITHUB_EVENT_NAME
9797
9898
echo "Running CLI without GitHub Actions context (with debug logging)..."
99-
./target/release/sentry-cli --log-level debug --auth-token dummy_token_for_testing --org test-org --project test-project build upload test_artifacts/app-debug.apk || true
99+
./target/release/sentry-cli --log-level debug --auth-token dummy_token_for_testing build -o test-org -p test-project upload test_artifacts/app-debug.apk || true
100100
101101
echo ""
102102
echo "Expected: Should fall back to 'git rev-parse HEAD'"

0 commit comments

Comments
 (0)