Merge pull request #8401 from zmstone/0702-fix-cron-triggered-cross-build
0702 fix cron triggered cross build
This commit is contained in:
commit
a32a582bbc
|
@ -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"
|
echo "WARN: This is an exact git tag, will publish release"
|
||||||
is_exact='true'
|
is_exact_tag='true'
|
||||||
else
|
else
|
||||||
echo "This is NOT an exact git tag, will not publish release"
|
echo "WARN: This is NOT an exact git tag, will not publish release"
|
||||||
is_exact='false'
|
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"
|
# maybe triggered from schedule
|
||||||
exit 1
|
echo "WARN: \"$PROFILE\" is not a valid profile."
|
||||||
|
echo "building the default profile 'emqx' instead"
|
||||||
|
PROFILE='emqx'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -58,6 +58,7 @@ jobs:
|
||||||
relup_test_run:
|
relup_test_run:
|
||||||
needs:
|
needs:
|
||||||
- relup_test_plan
|
- relup_test_plan
|
||||||
|
if: needs.relup_test_plan.outputs.OLD_VERSIONS != '[]'
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
Loading…
Reference in New Issue