Skip to content

Commit 9705815

Browse files
authored
[ci] setup flutter in batch release workflow (#10735)
as title. As an experiment, I setup a sub workflow for the install flutter. If this works, I will push another pr to update the release workflow to use the sub workflow ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 9db114f commit 9705815

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/batch_release_pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
env:
1111
BRANCH_NAME: ${{ github.event.client_payload.package }}-${{ github.run_id }}-${{ github.run_attempt }}
1212
steps:
13+
- name: "Install Flutter"
14+
uses: ./.github/workflows/internals/install_flutter
1315
- name: checkout repository
1416
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
1517
- name: Set up tools
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Install Flutter"
2+
description: "Installs a pinned version of Flutter"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: "Install Flutter"
7+
# This uses a pinned version of Flutter rather than `stable` so that it is
8+
# not subject to out-of-band failures when new releases happen. It does
9+
# not use the auto-rolled pin because there's no way for the autoroller
10+
# to test the actual release flow, so changes would still show up in
11+
# post-submit. A manually-rolled pin means that any changes here must be
12+
# made deliberately, so that the person updating it knows to watch the
13+
# next actual auto-release to ensure that it works, and knows to revert
14+
# the change if it doesn't.
15+
shell: bash
16+
run: |
17+
cd $HOME
18+
git clone https://github.com/flutter/flutter.git --depth 1 -b 3.38.5 _flutter
19+
echo "$HOME/_flutter/bin" >> $GITHUB_PATH
20+
cd $GITHUB_WORKSPACE

0 commit comments

Comments
 (0)