Skip to content

Commit a408da4

Browse files
Saadnajmiclaude
andcommitted
ci: filter hermesCommitAtMergeBase stdout to extract only commit hash
The hermesLog() calls write to stdout and were captured by the shell command substitution, corrupting the GITHUB_OUTPUT format. Filter to just the 40-char hex commit hash. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2a7e4db commit a408da4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/microsoft-build-spm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
id: resolve
3535
working-directory: packages/react-native
3636
run: |
37-
COMMIT=$(node -e "const {hermesCommitAtMergeBase} = require('./scripts/ios-prebuild/hermes'); console.log(hermesCommitAtMergeBase().commit);")
37+
COMMIT=$(node -e "const {hermesCommitAtMergeBase} = require('./scripts/ios-prebuild/hermes'); console.log(hermesCommitAtMergeBase().commit);" 2>&1 | grep -E '^[0-9a-f]{40}$')
3838
echo "hermes-commit=$COMMIT" >> "$GITHUB_OUTPUT"
3939
echo "Resolved Hermes commit: $COMMIT"
4040

0 commit comments

Comments
 (0)