From 9c8f89e58d134c989019fba1a278b1977e05fa0e Mon Sep 17 00:00:00 2001 From: Supadchaya Puangpontip Date: Sat, 9 Sep 2023 02:42:32 -0700 Subject: [PATCH] Fix nightly publishing logic (#2008) Summary: Pull Request resolved: https://github.com/pytorch/FBGEMM/pull/2008 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: q10 Differential Revision: D49117790 fbshipit-source-id: 78a10703cba494d2691b43e3223e94ba3ac99989 --- .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 7dd98f208..a65e9e21f 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' && 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) }} + 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"