Skip to content

Commit bca2121

Browse files
Make upload condition more specific
Only upload if the tag specifically starts with v2
1 parent 9e5137e commit bca2121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/arm-cd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ jobs:
6868
CI_DOCKER_BUILD_EXTRA_PARAMS="--build-arg py_major_minor_version=${{ matrix.pyver }} --build-arg is_nightly=${is_nightly} --build-arg tf_project_name=${tf_project_name}" \
6969
./tensorflow/tools/ci_build/ci_build.sh cpu.arm64 bash tensorflow/tools/ci_build/rel/ubuntu/cpu_arm64_pip.sh
7070
- name: Upload pip wheel to PyPI
71-
if: github.event_name == 'schedule' || (github.event_name == 'push' && contains(github.ref, 'refs/tags/')) # only if it is a scheduled nightly or tagged
71+
if: github.event_name == 'schedule' || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v2')) # only if it is a scheduled nightly or tagged
7272
shell: bash
7373
run: python3 -m twine upload --verbose /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/whl/* -u "__token__" -p ${{ secrets.AWS_PYPI_ACCOUNT_TOKEN }}

0 commit comments

Comments
 (0)