From 8564fa5030ddf5635ef075b19efbfee0846442d5 Mon Sep 17 00:00:00 2001 From: hangyu Date: Wed, 1 Apr 2026 13:30:08 -0700 Subject: [PATCH 1/3] Update reusable_release.yml --- .github/workflows/reusable_release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/reusable_release.yml b/.github/workflows/reusable_release.yml index f029b5b2009f..ce9dd0936d44 100644 --- a/.github/workflows/reusable_release.yml +++ b/.github/workflows/reusable_release.yml @@ -76,9 +76,19 @@ jobs: if [ "${{ inputs.is-batch-release }}" = "true" ]; then BATCH_FLAG="--batch-release-branch=${INPUTS_BRANCH_NAME}" fi + + # Build the Remote flag + # We use 'origin' for batch releases branches + # If not a batch release, it defaults to 'upstream' as per the Dart tool logic. + REMOTE_FLAG="" + if [ "${{ inputs.is-batch-release }}" = "true" ]; then + REMOTE_FLAG="--remote=origin" + fi + dart ./script/tool/lib/src/main.dart publish \ --all-changed \ $BATCH_FLAG \ + $REMOTE_FLAG \ --base-sha=HEAD~ \ --skip-confirmation env: { PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}", INPUTS_BRANCH_NAME: "${{ inputs.branch-name }}" } From 14ee21a65216f527a691834e1513904e97c3e9a3 Mon Sep 17 00:00:00 2001 From: hangyu Date: Wed, 1 Apr 2026 13:33:46 -0700 Subject: [PATCH 2/3] Update reusable_release.yml --- .github/workflows/reusable_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable_release.yml b/.github/workflows/reusable_release.yml index ce9dd0936d44..a2aee3b6decf 100644 --- a/.github/workflows/reusable_release.yml +++ b/.github/workflows/reusable_release.yml @@ -77,7 +77,7 @@ jobs: BATCH_FLAG="--batch-release-branch=${INPUTS_BRANCH_NAME}" fi - # Build the Remote flag + # Build the Remote flag string. It's the name of the remote to push the tags to. # We use 'origin' for batch releases branches # If not a batch release, it defaults to 'upstream' as per the Dart tool logic. REMOTE_FLAG="" From 1da82c5fc6d0ce0984665092c9514fa6f7cf80cc Mon Sep 17 00:00:00 2001 From: hangyu Date: Wed, 1 Apr 2026 13:42:03 -0700 Subject: [PATCH 3/3] Update reusable_release.yml --- .github/workflows/reusable_release.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/reusable_release.yml b/.github/workflows/reusable_release.yml index a2aee3b6decf..b4050aeb787a 100644 --- a/.github/workflows/reusable_release.yml +++ b/.github/workflows/reusable_release.yml @@ -77,18 +77,10 @@ jobs: BATCH_FLAG="--batch-release-branch=${INPUTS_BRANCH_NAME}" fi - # Build the Remote flag string. It's the name of the remote to push the tags to. - # We use 'origin' for batch releases branches - # If not a batch release, it defaults to 'upstream' as per the Dart tool logic. - REMOTE_FLAG="" - if [ "${{ inputs.is-batch-release }}" = "true" ]; then - REMOTE_FLAG="--remote=origin" - fi - dart ./script/tool/lib/src/main.dart publish \ --all-changed \ $BATCH_FLAG \ - $REMOTE_FLAG \ --base-sha=HEAD~ \ - --skip-confirmation + --skip-confirmation \ + --remote=origin env: { PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}", INPUTS_BRANCH_NAME: "${{ inputs.branch-name }}" }