diff options
author | shermp <14854761+shermp@users.noreply.github.com> | 2021-11-25 00:37:56 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2021-11-27 00:14:02 +0300 |
commit | 0086022e474bdc15f574c4cf9ed7cec390bc5450 (patch) | |
tree | b11bc56eeabf3835f4fb58158f758455d67b4511 /scripts | |
parent | f215ad9952ff8fda3634ce0b7f60460ec1e393c5 (diff) |
Get github env vars in create-package.sh
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-package.sh | 6 |
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 |