瀏覽代碼

ci(packages): run publish_artifacts on github hosted runner to get sudo

Ivan Dyachkov 2 年之前
父節點
當前提交
d6476481c9
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      .github/workflows/build_packages.yaml

+ 3 - 3
.github/workflows/build_packages.yaml

@@ -264,7 +264,7 @@ jobs:
         path: _packages/${{ matrix.profile }}/
         path: _packages/${{ matrix.profile }}/
 
 
   publish_artifacts:
   publish_artifacts:
-    runs-on: ${{ inputs.runner }}
+    runs-on: ubuntu-latest
     needs:
     needs:
       - mac
       - mac
       - linux
       - linux
@@ -280,7 +280,7 @@ jobs:
         name: ${{ matrix.profile }}
         name: ${{ matrix.profile }}
         path: packages/${{ matrix.profile }}
         path: packages/${{ matrix.profile }}
     - name: install dos2unix
     - name: install dos2unix
-      run: apt-get update && apt install -y dos2unix
+      run: sudo apt-get update && sudo apt install -y dos2unix
     - name: get packages
     - name: get packages
       run: |
       run: |
         set -eu
         set -eu
@@ -300,7 +300,7 @@ jobs:
       env:
       env:
         PROFILE: ${{ matrix.profile }}
         PROFILE: ${{ matrix.profile }}
       run: |
       run: |
-        set -e -u
+        set -eu
         if [ $PROFILE = 'emqx' ]; then
         if [ $PROFILE = 'emqx' ]; then
             s3dir='emqx-ce'
             s3dir='emqx-ce'
         elif [ $PROFILE = 'emqx-enterprise' ]; then
         elif [ $PROFILE = 'emqx-enterprise' ]; then