Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshermp <14854761+shermp@users.noreply.github.com>2021-11-25 00:37:56 +0300
committerkcgen <1557255+kcgen@users.noreply.github.com>2021-11-27 00:14:02 +0300
commit0086022e474bdc15f574c4cf9ed7cec390bc5450 (patch)
treeb11bc56eeabf3835f4fb58158f758455d67b4511 /scripts
parentf215ad9952ff8fda3634ce0b7f60460ec1e393c5 (diff)
Get github env vars in create-package.sh
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-package.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/create-package.sh b/scripts/create-package.sh
index 234794272..f1318ce5b 100755
--- a/scripts/create-package.sh
+++ b/scripts/create-package.sh
@@ -168,6 +168,12 @@ pkg_msvc()
cp "$VC_REDIST_DIR/vcruntime140_1.dll" "${pkg_dir}/" || true # might be missing, depending on arch
}
+# Get GitHub CI environment variables if available. The CLI options
+# '-c', '-b', '-r' will override these if set.
+git_commit=$GITHUB_SHA
+git_branch=${GITHUB_REF#refs/heads/}
+git_repo=$GITHUB_REPOSITORY
+
while getopts 'p:c:b:r:v:h' c
do
case $c in