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 a9792ec commit 9e8846eCopy full SHA for 9e8846e
.github/workflows/doc-build.yml
@@ -94,12 +94,11 @@ jobs:
94
# Get github.ref for the output doc folder. By default "main"
95
# If matches a tag like refs/tags/v1.12.0-rc3 or
96
# refs/tags/v1.12.0 convert to 1.12
97
- GITHUB_REF=${{ github.ref }}
98
export GITHUB_REF=${{ github.ref }}
99
100
# Convert refs/tags/v1.12.0rc3 into 1.12.
101
# Adopted from https://github.com/pytorch/pytorch/blob/main/.github/workflows/_docs.yml#L150C11-L155C13
102
- if [[ "${GITHUB_REF}" =~ ^refs/tags/v([0-9]+\.[0-9]+)\.* ]]; then
+ if [[ "${GITHUB_REF}" =~ ^refs/tags/v([0-9]+\.[0-9]+) ]]; then
103
TARGET_FOLDER="${BASH_REMATCH[1]}"
104
else
105
TARGET_FOLDER="main"
0 commit comments