diff --git a/.github/workflows/workflow-tester98.yml b/.github/workflows/workflow-tester98.yml index b28e156ca8..b278707221 100644 --- a/.github/workflows/workflow-tester98.yml +++ b/.github/workflows/workflow-tester98.yml @@ -16,8 +16,14 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - echo Saving iteration list output - echo "values=`[{"cacheName":"iteration1", "expirationType":"iteration1", "expirationTime":"iteration1"},{"cacheName":"iteration2", "expirationType":"iteration2", "expirationTime":"iteration2"},{"cacheName":"iteration3", "expirationType":"iteration3", "expirationTime":"iteration3"}]`" >> $GITHUB_OUTPUT + echo Saving iteration list output as Array + myArray=() + myArray+=("{\"cacheName\":\"iteration1\", \"expirationType\":\"iteration1\", \"expirationTime\":\"iteration1\"}") + myArray+=("{\"cacheName\":\"iteration2\", \"expirationType\":\"iteration3\", \"expirationTime\":\"iteration2\"}") + myArray+=("{\"cacheName\":\"iteration3\", \"expirationType\":\"iteration3\", \"expirationTime\":\"iteration3\"}") + myArray=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${myArray[@]}") + echo "Updated tasks list: $myArray" + echo "values==$myArray" >> $GITHUB_OUTPUT - name: Check list run: | echo ${{ steps.set-iterations.outputs.values }}