Skip to content

Commit 5f561a4

Browse files
committed
Merge remote-tracking branch 'upstream/main' into upgrade_xcode_test
2 parents 8ab09bd + 4763d4f commit 5f561a4

69 files changed

Lines changed: 1282 additions & 333 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ci/flutter_master.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
82d96ef98a33f3f35dabf7795e701f8a4d2d4bec
1+
fb03253e32ce6aba92872ed9c1224e999ec6abcb

.ci/flutter_stable.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2c9eb20739dfec95e2c74bd3dfa4601b0a8a36aa
1+
db50e20168db8fee486b9abf32fc912de3bc5b6a

.github/workflows/batch_release_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
# In that case, the workflow will exit and complete successfully.
2727
- name: create batch release branch
2828
run: |
29-
git config --global user.name ${{ secrets.USER_NAME }}
30-
git config --global user.email ${{ secrets.USER_EMAIL }}
29+
git config --global user.name "flutteractionsbot"
30+
git config --global user.email "fluttergithubbot@gmail.com"
3131
dart ./script/tool/lib/src/main.dart branch-for-batch-release --packages=${GITHUB_EVENT_CLIENT_PAYLOAD_PACKAGE} --branch=${BRANCH_NAME} --remote=origin
3232
env:
3333
GITHUB_EVENT_CLIENT_PAYLOAD_PACKAGE: ${{ github.event.client_payload.package }}
@@ -57,7 +57,7 @@ jobs:
5757
ref: ${{ env.BRANCH_NAME }}
5858
- name: Create batch release PR
5959
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
GITHUB_TOKEN: ${{ secrets.FLUTTERGITHUBBOT_TOKEN }}
6161
run: |
6262
gh pr create \
6363
--base "release-${{ github.event.client_payload.package }}" \

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# because there doesn't appear to be anything to wait for. To avoid that,
4141
# explicitly wait for one LUCI test by name first.
4242
- name: Wait for test check-in
43-
uses: lewagon/wait-on-check-action@74049309dfeff245fe8009a0137eacf28136cb3c
43+
uses: lewagon/wait-on-check-action@a08fbe2b86f9336198f33be6ad9c16b96f92799c
4444
with:
4545
ref: ${{ github.sha }}
4646
check-name: 'Linux ci_yaml packages roller'
@@ -52,7 +52,7 @@ jobs:
5252

5353
# This workflow should be the last to run. So wait for all the other tests to succeed.
5454
- name: Wait on all tests
55-
uses: lewagon/wait-on-check-action@74049309dfeff245fe8009a0137eacf28136cb3c
55+
uses: lewagon/wait-on-check-action@a08fbe2b86f9336198f33be6ad9c16b96f92799c
5656
with:
5757
ref: ${{ github.sha }}
5858
running-workflow-name: 'release'

.github/workflows/release_from_branches.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ on:
33
push:
44
branches:
55
- 'release-go_router'
6+
permissions:
7+
# Release needs to push a tag back to the repo.
8+
contents: write
69
jobs:
710
release:
8-
uses: ./.github/workflows/resuable_release.yml
11+
uses: ./.github/workflows/reusable_release.yml
912
with:
1013
is-batch-release: true
1114
branch-name: '${{ github.ref_name }}'

.github/workflows/reusable_release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
branch-name:
99
required: true
1010
type: string
11-
# Declare default permissions as read only.
12-
permissions: read-all
1311
jobs:
1412
release:
1513
if: github.repository_owner == 'flutter'
@@ -44,7 +42,7 @@ jobs:
4442
# because there doesn't appear to be anything to wait for. To avoid that,
4543
# explicitly wait for one LUCI test by name first.
4644
- name: Wait for test check-in
47-
uses: lewagon/wait-on-check-action@74049309dfeff245fe8009a0137eacf28136cb3c
45+
uses: lewagon/wait-on-check-action@a08fbe2b86f9336198f33be6ad9c16b96f92799c
4846
with:
4947
ref: ${{ github.sha }}
5048
check-name: 'Linux ci_yaml packages roller'
@@ -56,7 +54,7 @@ jobs:
5654

5755
# This workflow should be the last to run. So wait for all the other tests to succeed.
5856
- name: Wait on all tests
59-
uses: lewagon/wait-on-check-action@74049309dfeff245fe8009a0137eacf28136cb3c
57+
uses: lewagon/wait-on-check-action@a08fbe2b86f9336198f33be6ad9c16b96f92799c
6058
with:
6159
ref: ${{ github.sha }}
6260
running-workflow-name: 'release'

.github/workflows/sync_release_pr.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Sync Release to Main"
33
on:
44
push:
55
branches:
6-
# As packages opt into batched releases, they need to be added here
6+
# As packages opt into batched releases, they need to be added here
77
- 'release-go_router'
88

99
jobs:
@@ -16,11 +16,26 @@ jobs:
1616
steps:
1717
- name: Checkout repository
1818
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
19+
with:
20+
fetch-depth: 0 # Fetch history to allow branch comparison
1921

2022
- name: Create Pull Request
2123
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
GITHUB_TOKEN: ${{ secrets.FLUTTERGITHUBBOT_TOKEN }}
2325
run: |
26+
# 1. Fetch main so the runner can see the difference
27+
git fetch origin main
28+
29+
# 2. Verify there are actually new commits to sync
30+
# This prevents the "GraphQL: No commits between main..." error
31+
COMMITS_COUNT=$(git rev-list --count origin/main..HEAD)
32+
33+
if [ "$COMMITS_COUNT" -eq "0" ]; then
34+
echo "No new commits found on ${{ github.ref_name }} compared to main. Nothing to sync."
35+
exit 0
36+
fi
37+
38+
# 3. Create the PR directly
2439
gh pr create \
2540
--base "main" \
2641
--head "${{ github.ref_name }}" \

CODEOWNERS

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)