We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37ebab2 commit 4334515Copy full SHA for 4334515
.github/workflows/release.yml
@@ -16,4 +16,5 @@ jobs:
16
- name: Build and Deploy Docs
17
run: set -o pipefail && env NSUnbufferedIO=YES Scripts/update-gh-pages-documentation-site
18
env:
19
+ CURRENT_BRANCH_NAME: release
20
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
Scripts/update-gh-pages-documentation-site
@@ -45,7 +45,9 @@ git fetch
45
git worktree add --checkout gh-pages origin/gh-pages
46
47
# Get the name of the current branch to use as the subdirectory for the deployment
48
-CURRENT_BRANCH_NAME=`git rev-parse --abbrev-ref HEAD`
+if [ -z "$CURRENT_BRANCH_NAME"]; then
49
+ CURRENT_BRANCH_NAME=`git rev-parse --abbrev-ref HEAD`
50
+fi
51
52
# Replace any forward slashes in the current branch name with dashes
53
DEPLOYMENT_SUBDIRECTORY=${CURRENT_BRANCH_NAME//\//-}
0 commit comments