Skip to content

Commit 402e4c8

Browse files
committed
fix: update workflow to use new GitHub Actions output syntax
1 parent 345365c commit 402e4c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/reusable-test-runner.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ jobs:
4141
id: set-array
4242
run: |
4343
if [[ "${{ inputs.test-modes }}" == *","* ]]; then
44-
echo '::set-output name=array::["'$(echo "${{ inputs.test-modes }}" | sed 's/,/","/g')'"]'
44+
array='["'$(echo "${{ inputs.test-modes }}" | sed 's/,/","/g')'"]'
45+
echo "array=$array" >> $GITHUB_OUTPUT
4546
else
46-
echo '::set-output name=array::["${{ inputs.test-modes }}"]'
47+
array='["${{ inputs.test-modes }}"]'
48+
echo "array=$array" >> $GITHUB_OUTPUT
4749
fi
50+
echo "::notice title=Test Modes Array::Generated test modes array: $array"
4851
4952
test-all:
5053
needs: [prepare-test-modes]

0 commit comments

Comments
 (0)