We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10729b2 commit e138c75Copy full SHA for e138c75
1 file changed
releaseDocs.ps1
@@ -9,7 +9,11 @@ write-host "`ACTOR is $ACTOR"
9
$SOURCE_DIR=$psscriptroot
10
$TEMP_REPO_DIR=[System.IO.Path]::GetFullPath("$psscriptroot/../docs-gh-pages")
11
12
-$remote_repo="https://github-actions:${TOKEN}@github.com/rws/studio-api-docs.git"
+# Determine if current repo ends with -beta
13
+$currentRepoName = Split-Path -Leaf $SOURCE_DIR
14
+$betaSuffix = if ($currentRepoName -match '-beta$') { '-beta' } else { '' }
15
+
16
+$remote_repo="https://github-actions:${TOKEN}@github.com/rws/studio-api-docs${betaSuffix}.git"
17
18
write-host "Cloning the repo $remote_repo with the gh-pages branch"
19
git clone $remote_repo --branch gh-pages $TEMP_REPO_DIR
0 commit comments