Skip to content

Commit 2b77f62

Browse files
authored
Fix jq command to extract build number correctly
1 parent fd37491 commit 2b77f62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/unity-cloud-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
build_number=$(curl -s -X POST \
2727
-H "Authorization: Basic ${{ secrets.UNITY_API_KEY }}" \
2828
https://build-api.cloud.unity3d.com/api/v1/orgs/6872789246035/projects/5fac262b-e52e-42f7-a9d6-d4464b2ff80e/buildtargets/${{ matrix.target }}/builds \
29-
| jq '.build' )
29+
| jq '.[0].build' )
3030
3131
echo "build_number=$build_number" >> $GITHUB_OUTPUT
3232

0 commit comments

Comments
 (0)