Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit f97251a

Browse files
author
Chris Yang
committed
fix cirrus
1 parent dc8e1ad commit f97251a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.cirrus.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ task:
99
env:
1010
INTEGRATION_TEST_PATH: "./packages/integration_test"
1111
PLUGIN_TOOLS: "dart run ./script/tool/lib/src/main.dart"
12-
BRANCH_NAME: "${BRANCH_NAME:-"$(git rev-parse --abbrev-ref HEAD)"}"
1312
upgrade_script:
1413
- flutter channel stable
1514
- flutter upgrade
@@ -26,13 +25,14 @@ task:
2625
- CIRRUS_BUILD_ID=null pub run test
2726
- name: publishable
2827
script:
28+
- BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)"
2929
- flutter channel master
30-
- if [[$BRANCH_NAME != "master"]];then
31-
- echo "Running version-check on changed pacakges"
32-
- $PLUGIN_TOOLS version-check --run-on-changed-packages
33-
- else
30+
- if [[ "$BRANCH_NAME" -eq "check_version" ]]; then
3431
- echo "Running version-check on all packages"
3532
- $PLUGIN_TOOLS version-check
33+
- else
34+
- echo "Running version-check on changed pacakges"
35+
- $PLUGIN_TOOLS version-check --run-on-changed-packages
3636
- fi
3737
- ./script/check_publish.sh
3838
- name: format

0 commit comments

Comments
 (0)