فهرست منبع

ci: do not post updates about enterprise releases to emqx.io

Ivan Dyachkov 2 سال پیش
والد
کامیت
cfae0baf03
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      .github/workflows/release.yaml

+ 2 - 2
.github/workflows/release.yaml

@@ -69,9 +69,9 @@ jobs:
         with:
         with:
           asset_paths: '["packages/*"]'
           asset_paths: '["packages/*"]'
       - name: update to emqx.io
       - name: update to emqx.io
-        if: github.event_name == 'release' || inputs.publish_release_artefacts
+        if: startsWith(github.ref_name, 'v') && (github.event_name == 'release' || inputs.publish_release_artefacts)
         run: |
         run: |
-          set -e -x -u
+          set -eux
           curl -w %{http_code} \
           curl -w %{http_code} \
                --insecure \
                --insecure \
                -H "Content-Type: application/json" \
                -H "Content-Type: application/json" \