File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ This action is designed to be used in GitHub Actions environment. If you want to
119
119
#
120
120
# Example:
121
121
122
- SETUP_FLUTTER_BRANCH=main
122
+ export SETUP_FLUTTER_BRANCH=main
123
123
curl -fsSL https://raw.githubusercontent.com/flutter-actions/setup-flutter/${SETUP_FLUTTER_BRANCH}/install.sh | bash -s -- 3.0.2 stable
124
124
` ` `
125
125
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ SETUP_FLUTTER_BRANCH=${SETUP_FLUTTER_BRANCH:- " main" }
2
3
SETUP_FLUTTER_WORKDIR=${SETUP_FLUTTER_WORKDIR:- " $( pwd) /.setup-flutter" }
3
4
4
5
# Runner environment variables
@@ -20,4 +21,4 @@ mkdir -p "$RUNNER_TOOL_CACHE" "$RUNNER_TEMP"
20
21
touch " $GITHUB_ENV " " $GITHUB_PATH "
21
22
22
23
# Run the action
23
- curl -fsSL " https://raw.githubusercontent.com/flutter-actions/setup-flutter/main /action.sh" | bash -s -- " $@ "
24
+ curl -fsSL " https://raw.githubusercontent.com/flutter-actions/setup-flutter/${SETUP_FLUTTER_BRANCH} /action.sh" | bash -s -- " $@ "
You can’t perform that action at this time.
0 commit comments