We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc5316c commit dae9b62Copy full SHA for dae9b62
Scripts/capture-build-details.sh
@@ -89,5 +89,14 @@ then
89
if [ -n "$branch" ]; then
90
plutil -replace com-loopkit-LoopWorkspace-git-branch -string "${branch}" "${info_plist_path}"
91
fi
92
+ # determine if this is a GitHub Action build (with 90 day expiration)
93
+ folderName=$(pwd)
94
+ runnerString="/Users/runner"
95
+ if [ "${folderName:0:13}" == "$runnerString" ]; then
96
+ # overwrite profile_expire_date
97
+ profile_expire_date=$(date -j -v+90d +"%Y-%m-%dT%H:%M:%SZ")
98
+ echo "runnerString detected, update profile_expire_date to ${profile_expire_date}"
99
+ plutil -replace com-loopkit-Loop-profile-expiration -date "${profile_expire_date}" "${info_plist_path}"
100
+ fi
101
popd . > /dev/null
102
0 commit comments