Skip to content

Commit

Permalink
update workflow-tester98
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFalourd committed May 22, 2024
1 parent eb43e9d commit 7ab9a3b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/workflow-tester98.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 7ab9a3b

Please sign in to comment.