fix(infra)- Add pr number to release branches (#9506)

Co-authored-by: Shi Shu <shii@google.com>
This commit is contained in:
shishu314
2025-09-29 13:14:53 -04:00
committed by GitHub
parent 8a2c2dc73f
commit 042288e72c
4 changed files with 19 additions and 5 deletions

View File

@@ -68,7 +68,7 @@ jobs:
run: |
# Capture output and display it in logs using tee
{
node scripts/releasing/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --dry-run=${{ github.event.inputs.dry_run }}
node scripts/releasing/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --pullRequestNumber=${{ github.event.inputs.original_pr }} --dry-run=${{ github.event.inputs.dry_run }}
echo "EXIT_CODE=$?" >> "$GITHUB_OUTPUT"
} 2>&1 | tee >(
echo "LOG_CONTENT<<EOF" >> "$GITHUB_ENV"

View File

@@ -32,6 +32,11 @@ on:
required: false
type: 'boolean'
default: false
test_mode:
description: 'Whether or not to run in test mode'
required: false
type: 'boolean'
default: false
jobs:
trigger-patch-release:
@@ -68,5 +73,6 @@ jobs:
GITHUB_EVENT_NAME: '${{ github.event_name }}'
GITHUB_EVENT_PAYLOAD: '${{ toJSON(github.event) }}'
FORCE_SKIP_TESTS: '${{ github.event.inputs.force_skip_tests }}'
TEST_MODE: '${{ github.event.inputs.test_mode }}'
run: |
node scripts/releasing/patch-trigger.js
node scripts/releasing/patch-trigger.js --dry-run=${{ github.event.inputs.dry_run }}