better messaging (#8794)

This commit is contained in:
matt korwel
2025-09-18 19:00:18 -07:00
committed by GitHub
parent bfa4140593
commit ec01b1f29f
4 changed files with 375 additions and 27 deletions

View File

@@ -71,9 +71,15 @@ jobs:
GH_TOKEN: '${{ steps.generate_token.outputs.token }}'
continue-on-error: true
run: |
node scripts/releasing/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --dry-run=${{ github.event.inputs.dry_run }} > patch_output.log 2>&1
echo "EXIT_CODE=$?" >> "$GITHUB_OUTPUT"
cat patch_output.log
# Capture output directly to environment variable
{
node scripts/releasing/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --dry-run=${{ github.event.inputs.dry_run }}
echo "EXIT_CODE=$?" >> "$GITHUB_OUTPUT"
} 2>&1 | {
echo "LOG_CONTENT<<EOF" >> "$GITHUB_ENV"
cat >> "$GITHUB_ENV"
echo "EOF" >> "$GITHUB_ENV"
}
- name: 'Comment on Original PR'
if: '!inputs.dry_run && inputs.original_pr'
@@ -81,7 +87,6 @@ jobs:
GH_TOKEN: '${{ steps.generate_token.outputs.token }}'
ORIGINAL_PR: '${{ github.event.inputs.original_pr }}'
EXIT_CODE: '${{ steps.create_patch.outputs.EXIT_CODE }}'
OUTPUT_LOG: 'patch_output.log'
COMMIT: '${{ github.event.inputs.commit }}'
CHANNEL: '${{ github.event.inputs.channel }}'
REPOSITORY: '${{ github.repository }}'