better logging (#8712)

This commit is contained in:
matt korwel
2025-09-18 09:43:35 -07:00
committed by GitHub
parent c9cc05bc3d
commit 143e5c3140
2 changed files with 18 additions and 1 deletions

View File

@@ -24,6 +24,10 @@ on:
required: false
type: 'string'
default: 'main'
original_pr:
description: 'The original PR number to comment back on.'
required: false
type: 'string'
jobs:
create-patch:
@@ -68,6 +72,18 @@ jobs:
run: 'node scripts/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=stable --dry-run=${{ github.event.inputs.dry_run }}'
- name: 'Create Patch for Preview'
id: 'create_patch'
env:
GH_TOKEN: '${{ steps.generate_token.outputs.token }}'
run: 'node scripts/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --dry-run=${{ github.event.inputs.dry_run }}'
- name: 'Comment on Original PR'
if: '!inputs.dry_run && inputs.original_pr'
env:
GH_TOKEN: '${{ steps.generate_token.outputs.token }}'
run: |
gh pr comment ${{ github.event.inputs.original_pr }} --body "🚀 Patch PR created!
The patch release PR for this change has been created. Please review and approve it to complete the patch release:
View all patch PRs: https://github.com/${{ github.repository }}/pulls?q=is%3Apr+is%3Aopen+label%3Apatch"

View File

@@ -62,7 +62,8 @@ jobs:
inputs: {
commit: '${{ steps.pr_status.outputs.MERGE_COMMIT_SHA }}',
channel: args.channel || 'stable',
dry_run: args.dry_run || 'false'
dry_run: args.dry_run || 'false',
original_pr: '${{ github.event.issue.number }}'
}
})