File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8383 # Set artifact name here since github actions doesn't have string manipulation tools
8484 # and "/" is not allowed in artifact names. //\//_ is to replace all forward slashes,
8585 # not just the first one
86- echo "ARTIFACT_NAME=${REPOSITORY//\//_}_${REF//\//_}_${PYTHON_VERSION}_${CU_VERSION}_${ARCH}" >> "${GITHUB_ENV}"
86+ # Convert long python version (e.g. 3.10.19) to short major.minor version
87+ # (e.g. 3.10), while preserving special suffixes like "t" (e.g. 3.13t, 3.14t)
88+ SHORT_PYTHON_VERSION=$(echo "${PYTHON_VERSION}" | sed -E 's/^([0-9]+\.[0-9]+[a-z]?).*/\1/')
89+ echo "ARTIFACT_NAME=${REPOSITORY//\//_}_${REF//\//_}_${SHORT_PYTHON_VERSION}_${CU_VERSION}_${ARCH}" >> "${GITHUB_ENV}"
8790 - name : Setup miniconda (for pytorch_pkg_helpers)
8891 if : ${{ inputs.setup-miniconda == 'true' }}
8992 uses : conda-incubator/setup-miniconda@v3.1.1
Original file line number Diff line number Diff line change 5252 # Set artifact name here since github actions doesn't have string manipulation tools
5353 # and "/" is not allowed in artifact names. //\//_ is to replace all forward slashes,
5454 # not just the first one
55- echo "ARTIFACT_NAME=${REPOSITORY//\//_}_${REF//\//_}_${PYTHON_VERSION}_${CU_VERSION}_${ARCH}" >> "${GITHUB_ENV}"
55+ # Convert long python version (e.g. 3.10.19) to short major.minor version
56+ # (e.g. 3.10), while preserving special suffixes like "t" (e.g. 3.13t, 3.14t)
57+ SHORT_PYTHON_VERSION=$(echo "${PYTHON_VERSION}" | sed -E 's/^([0-9]+\.[0-9]+[a-z]?).*/\1/')
58+ echo "ARTIFACT_NAME=${REPOSITORY//\//_}_${REF//\//_}_${SHORT_PYTHON_VERSION}_${CU_VERSION}_${ARCH}" >> "${GITHUB_ENV}"
5659
5760 # Need to checkout the target repository to run pkg-helpers
5861 - uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments