Skip to content

Commit

Permalink
products needs to be a basic string not array
Browse files Browse the repository at this point in the history
  • Loading branch information
H0R5E committed Sep 18, 2024
1 parent edb0365 commit 84bfa06
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/all-tests-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
echo "folder=$(cat folder.json | jq -cr)" >> $GITHUB_OUTPUT
echo "include=$(cat include.json | jq -cr)" >> $GITHUB_OUTPUT
echo "products=$(cat products.json | jq -cr)" >> $GITHUB_OUTPUT
echo "products=$(cat products.txt)" >> $GITHUB_OUTPUT
run_tests:
name: Run tests
needs: targets
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changed-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: |
echo "folder=$(cat folder.json | jq -cr)" >> $GITHUB_OUTPUT
echo "include=$(cat include.json | jq -cr)" >> $GITHUB_OUTPUT
echo "products=$(cat products.json | jq -cr)" >> $GITHUB_OUTPUT
echo "products=$(cat products.txt)" >> $GITHUB_OUTPUT
run_tests:
name: Run tests
needs: targets
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
products: ${{ fromJSON(inputs.products) }}
products: ${{ inputs.products }}
release: ${{ matrix.release }}
cache: true
- name: Start display server (Desalination on Linux)
Expand Down
4 changes: 2 additions & 2 deletions getTestTargets.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ function getTestTargets(diffFile)
fclose(fid);

products = getProducts(all_targets);
filename = 'products.json';
filename = 'products.txt';
fid = fopen(filename, 'w');
fprintf(fid, '%s', jsonencode(products));
fprintf(fid, '%s', strjoin(products));
fclose(fid);

include_struct = struct('folder', targets);
Expand Down

0 comments on commit 84bfa06

Please sign in to comment.