Browse Source

ci: fix logs artefact name

Ivan Dyachkov 3 years ago
parent
commit
93789fb872
2 changed files with 5 additions and 3 deletions
  1. 2 2
      .github/workflows/run_test_cases.yaml
  2. 3 1
      scripts/find-apps.sh

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

@@ -187,7 +187,7 @@ jobs:
         - uses: actions/upload-artifact@v3
           if: failure()
           with:
-            name: logs-${{ matrix.app[0] }}-${{ matrix.app[1] }}
+            name: logs-${{ matrix.app[1] }}-${{ matrix.app[2] }}
             path: source/_build/test/logs
 
     ct:
@@ -243,7 +243,7 @@ jobs:
         - uses: actions/upload-artifact@v3
           if: failure()
           with:
-            name: logs-${{ matrix.app[0] }}-${{ matrix.app[1] }}
+            name: logs-${{ matrix.app[1] }}-${{ matrix.app[2] }}
             path: source/_build/test/logs
 
     make_cover:

+ 3 - 1
scripts/find-apps.sh

@@ -78,7 +78,9 @@ dimensions() {
             ;;
     esac
     ## poor-man's json formatter
-    echo -n -e "[\"$app\", \"$profile\"]"
+    ## apps/<app name>, <profile>, apps_<app name>
+    ## third one is for github actions (they don't like slash in variables)
+    echo -n -e "[\"$app\", \"$profile\", \"${app//\//_}\"]"
 }
 
 matrix() {