You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DD88C8E02C4D716400F2D558 /* Run Script: get branch name and commit ID */ = {
3481
-
isa = PBXShellScriptBuildPhase;
3482
-
buildActionMask = 2147483647;
3483
-
files = (
3484
-
);
3485
-
inputFileListPaths = (
3486
-
);
3487
-
inputPaths = (
3488
-
);
3489
-
name = "Run Script: get branch name and commit ID";
3490
-
outputFileListPaths = (
3491
-
);
3492
-
outputPaths = (
3493
-
);
3494
-
runOnlyForDeploymentPostprocessing = 0;
3495
-
shellPath = /bin/sh;
3496
-
shellScript = "# Prints a message\necho \"writing BRANCH to branch.txt\"\n\n# Retrieves version, branch, and tag information from Git\ngit_version=$(git log -1 --format=\"%h\" --abbrev=7)\ngit_branch=$(git symbolic-ref --short -q HEAD)\ngit_tag=$(git describe --tags --exact-match 2>/dev/null)\n\n# Determines branch or tag information\ngit_branch_or_tag=\"${git_branch:-${git_tag}}\"\ngit_branch_or_tag_version=\"${git_branch_or_tag} ${git_version}\"\n\necho \"BRANCH = ${git_branch_or_tag_version}\" > \"./branch.txt\"\n\n# Prints a message about the working directory and branch.txt\necho \"branch.txt is created/modified in ${PWD}\"\n";
0 commit comments