Skip to content

Commit ec1daa3

Browse files
committed
output buildId
1 parent 8bd9bac commit ec1daa3

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.idea
2+
build_output.log

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ inputs:
9292
outputs:
9393
manifest:
9494
description: "The path to the generated manifest.vdf"
95+
buildId:
96+
description: "The Steam BuildID of the uploaded build"
9597
runs:
9698
using: "docker"
9799
image: Dockerfile

steam_deploy.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ echo "# Uploading build #"
164164
echo "#################################"
165165
echo ""
166166

167-
steamcmd +login "$steam_username" +run_app_build "$manifest_path" +quit || (
167+
steamcmd +login "$steam_username" +run_app_build "$manifest_path" +quit | tee build_output.log || (
168168
echo ""
169169
echo "#################################"
170170
echo "# Errors #"
@@ -212,4 +212,7 @@ steamcmd +login "$steam_username" +run_app_build "$manifest_path" +quit || (
212212
exit 1
213213
)
214214

215+
buildId=$(grep -oP '\(BuildID \K\d+(?=\))' build_output.log || echo "")
216+
215217
echo "manifest=${manifest_path}" >> $GITHUB_OUTPUT
218+
echo "buildId=${buildId}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)