Skip to content

Commit 0ee1bdc

Browse files
authored
[ci] release action uses sub action for installing flutter (#10747)
as title, verified the use of sub action for install flutter. dedups the release 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 39d8eee commit 0ee1bdc

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,13 @@ jobs:
1616
contents: write
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: "Install Flutter"
20-
# Github Actions don't support templates so it is hard to share this snippet with another action
21-
# If we eventually need to use this in more workflow, we could create a shell script that contains this
22-
# snippet.
23-
#
24-
# This uses a pinned version of Flutter rather than `stable` so that it is
25-
# not subject to out-of-band failures when new releases happen. It does
26-
# not use the auto-rolled pin because there's no way for the autoroller
27-
# to test the actual release flow, so changes would still show up in
28-
# post-submit. A manually-rolled pin means that any changes here must be
29-
# made deliberately, so that the person updating it knows to watch the
30-
# next actual auto-release to ensure that it works, and knows to revert
31-
# the change if it doesn't.
32-
run: |
33-
cd $HOME
34-
git clone https://github.com/flutter/flutter.git --depth 1 -b 3.38.1 _flutter
35-
echo "$HOME/_flutter/bin" >> $GITHUB_PATH
36-
cd $GITHUB_WORKSPACE
3719
# Checks out a copy of the repo.
3820
- name: Check out code
3921
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
4022
with:
4123
fetch-depth: 0 # Fetch all history so the tool can get all the tags to determine version.
24+
- name: "Install Flutter"
25+
uses: ./.github/workflows/internals/install_flutter
4226
- name: Set up tools
4327
run: dart pub get
4428
working-directory: ${{ github.workspace }}/script/tool

0 commit comments

Comments
 (0)