浏览代码

ci: fix cron triggered cross-build

Zaiming (Stone) Shi 3 年之前
父节点
当前提交
afbbd33496
共有 1 个文件被更改,包括 9 次插入7 次删除
  1. 9 7
      .github/workflows/build_packages.yaml

+ 9 - 7
.github/workflows/build_packages.yaml

@@ -42,13 +42,13 @@ jobs:
           git config --global --add safe.directory "$(pwd)"
           git config --global --add safe.directory "$(pwd)"
           tag=${{ github.ref }}
           tag=${{ github.ref }}
           if git describe --tags --match "[v|e]*" --exact; then
           if git describe --tags --match "[v|e]*" --exact; then
-            echo "This is an exact git tag, will publish release"
-            is_exact='true'
+            echo "WARN: This is an exact git tag, will publish release"
+            is_exact_tag='true'
           else
           else
-            echo "This is NOT an exact git tag, will not publish release"
-            is_exact='false'
+            echo "WARN: This is NOT an exact git tag, will not publish release"
+            is_exact_tag='false'
           fi
           fi
-          echo "::set-output name=IS_EXACT_TAG::${is_exact}"
+          echo "::set-output name=IS_EXACT_TAG::${is_exact_tag}"
           case $tag in
           case $tag in
             refs/tags/v*)
             refs/tags/v*)
               PROFILE='emqx'
               PROFILE='emqx'
@@ -66,8 +66,10 @@ jobs:
                   true
                   true
                   ;;
                   ;;
                 *)
                 *)
-                  echo "ERROR: Failed to resolve build profile"
-                  exit 1
+                  # maybe triggered from schedule
+                  echo "WARN: \"$PROFILE\" is not a valid profile."
+                  echo "building the default profile 'emqx' instead"
+                  PROFILE='emqx'
                   ;;
                   ;;
               esac
               esac
               ;;
               ;;