Skip to content

Commit 9314595

Browse files
svekarsfacebook-github-bot
authored andcommitted
Update the upload job (#3385)
Summary: The current regex doesn't match as needed, but the corrected one does. Also exporting the GITHUB_REF variable just in case. Pull Request resolved: #3385 Reviewed By: dbort Differential Revision: D56659290 Pulled By: svekars fbshipit-source-id: 19672df509656958e355d2a88c506cfe056649fd
1 parent dc726f9 commit 9314595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/doc-build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ jobs:
9494
# Get github.ref for the output doc folder. By default "main"
9595
# If matches a tag like refs/tags/v1.12.0-rc3 or
9696
# refs/tags/v1.12.0 convert to 1.12
97-
GITHUB_REF=${{ github.ref }}
97+
export GITHUB_REF=${{ github.ref }}
9898
9999
# Convert refs/tags/v1.12.0rc3 into 1.12.
100100
# Adopted from https://github.com/pytorch/pytorch/blob/main/.github/workflows/_docs.yml#L150C11-L155C13
101-
if [[ "${GITHUB_REF}" =~ ^refs/tags/v([0-9]+\\.[0-9]+)\\. ]]; then
101+
if [[ "${GITHUB_REF}" =~ ^refs/tags/v([0-9]+\.[0-9]+) ]]; then
102102
TARGET_FOLDER="${BASH_REMATCH[1]}"
103103
else
104104
TARGET_FOLDER="main"

0 commit comments

Comments
 (0)