From 4decf7b316842a697908a2791decc6c5ca4bd1e2 Mon Sep 17 00:00:00 2001 From: Supadchaya Puangpontip Date: Fri, 8 Sep 2023 16:01:00 -0700 Subject: [PATCH] Fix nightly publishing logic (#2007) Summary: Pull Request resolved: https://github.com/pytorch/FBGEMM/pull/2007 Fix nightly publishing logic. Currently it attempts to publish all versions when for the scheduled run. https://github.com/pytorch/FBGEMM/actions/runs/6121960197/job/16617350408 Reviewed By: sryap Differential Revision: D49106347 fbshipit-source-id: 29ecd25f1f2a1835941c59123cf328e48ef806ba --- .github/workflows/fbgemm_gpu_cuda_nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fbgemm_gpu_cuda_nightly.yml b/.github/workflows/fbgemm_gpu_cuda_nightly.yml index c3aeef8ba..30a87c49b 100644 --- a/.github/workflows/fbgemm_gpu_cuda_nightly.yml +++ b/.github/workflows/fbgemm_gpu_cuda_nightly.yml @@ -184,7 +184,7 @@ jobs: run: . $PRELUDE; cd fbgemm_gpu/test; run_fbgemm_gpu_tests $BUILD_ENV - name: Push FBGEMM_GPU Nightly Binary to PYPI - if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_to_pypi == 'true' && matrix.cuda-version == matrix.cuda-version-publish) }} + if: ${{ github.event_name == 'schedule' && matrix.cuda-version == matrix.cuda-version-publish || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_to_pypi == 'true' && matrix.cuda-version == matrix.cuda-version-publish) }} env: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} run: . $PRELUDE; publish_to_pypi $BUILD_ENV fbgemm_gpu_nightly-*.whl "$PYPI_TOKEN"