Skip to content

Commit 143e5c3

Browse files
authored
better logging (#8712)
1 parent c9cc05b commit 143e5c3

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/release-patch-1-create-pr.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
required: false
2525
type: 'string'
2626
default: 'main'
27+
original_pr:
28+
description: 'The original PR number to comment back on.'
29+
required: false
30+
type: 'string'
2731

2832
jobs:
2933
create-patch:
@@ -68,6 +72,18 @@ jobs:
6872
run: 'node scripts/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=stable --dry-run=${{ github.event.inputs.dry_run }}'
6973

7074
- name: 'Create Patch for Preview'
75+
id: 'create_patch'
7176
env:
7277
GH_TOKEN: '${{ steps.generate_token.outputs.token }}'
7378
run: 'node scripts/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --dry-run=${{ github.event.inputs.dry_run }}'
79+
80+
- name: 'Comment on Original PR'
81+
if: '!inputs.dry_run && inputs.original_pr'
82+
env:
83+
GH_TOKEN: '${{ steps.generate_token.outputs.token }}'
84+
run: |
85+
gh pr comment ${{ github.event.inputs.original_pr }} --body "🚀 Patch PR created!
86+
87+
The patch release PR for this change has been created. Please review and approve it to complete the patch release:
88+
89+
View all patch PRs: https://github.com/${{ github.repository }}/pulls?q=is%3Apr+is%3Aopen+label%3Apatch"

.github/workflows/release-patch-from-comment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ jobs:
6262
inputs: {
6363
commit: '${{ steps.pr_status.outputs.MERGE_COMMIT_SHA }}',
6464
channel: args.channel || 'stable',
65-
dry_run: args.dry_run || 'false'
65+
dry_run: args.dry_run || 'false',
66+
original_pr: '${{ github.event.issue.number }}'
6667
}
6768
})
6869

0 commit comments

Comments
 (0)