From afbbd334960e7d8ee013bb0d6375163a69fa8900 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sat, 2 Jul 2022 19:49:37 +0200 Subject: [PATCH 1/3] ci: fix cron triggered cross-build --- .github/workflows/build_packages.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_packages.yaml b/.github/workflows/build_packages.yaml index 19c04431e..cce8a8d2e 100644 --- a/.github/workflows/build_packages.yaml +++ b/.github/workflows/build_packages.yaml @@ -42,13 +42,13 @@ jobs: git config --global --add safe.directory "$(pwd)" tag=${{ github.ref }} 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 - 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 - echo "::set-output name=IS_EXACT_TAG::${is_exact}" + echo "::set-output name=IS_EXACT_TAG::${is_exact_tag}" case $tag in refs/tags/v*) PROFILE='emqx' @@ -66,8 +66,10 @@ jobs: 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 ;; From 6072d49b2cba9550485bab11d601905044408efd Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sat, 2 Jul 2022 19:57:31 +0200 Subject: [PATCH 2/3] ci: ignore relup test if no old version is found --- .github/workflows/run_relup_tests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/run_relup_tests.yaml b/.github/workflows/run_relup_tests.yaml index ee21538fd..0be073a70 100644 --- a/.github/workflows/run_relup_tests.yaml +++ b/.github/workflows/run_relup_tests.yaml @@ -58,6 +58,7 @@ jobs: relup_test_run: needs: - relup_test_plan + if: needs.relup_test_plan.outputs.OLD_VERSIONS != "[]" runs-on: ubuntu-20.04 strategy: fail-fast: false From e0f8b83b1dc53d52fa9db96d613b4399693c5e5e Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sun, 3 Jul 2022 08:22:49 +0200 Subject: [PATCH 3/3] ci: fix GitHub action syntax .github/workflows/run_relup_tests.yaml --- .github/workflows/run_relup_tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_relup_tests.yaml b/.github/workflows/run_relup_tests.yaml index 0be073a70..7f33d0a31 100644 --- a/.github/workflows/run_relup_tests.yaml +++ b/.github/workflows/run_relup_tests.yaml @@ -58,7 +58,7 @@ jobs: relup_test_run: needs: - relup_test_plan - if: needs.relup_test_plan.outputs.OLD_VERSIONS != "[]" + if: needs.relup_test_plan.outputs.OLD_VERSIONS != '[]' runs-on: ubuntu-20.04 strategy: fail-fast: false