From 2ef75de3e6735914cdeeae831205e78b1b346a03 Mon Sep 17 00:00:00 2001 From: Arya Massarat <23412689+aryarm@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:48:25 -0800 Subject: [PATCH] only run anaconda upload on main branch --- .github/workflows/test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 838e8c1..9e3f9ec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -110,7 +110,6 @@ jobs: shell: bash -el {0} env: ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }} - # if: ${{ (env.ANACONDA_API_TOKEN != '') && (github.ref == 'ref/head/master') && (steps.artifact-upload.outputs.artifact-id != '') }} - if: ${{ (env.ANACONDA_API_TOKEN != '') && (steps.artifact-upload.outputs.artifact-id != '') }} + if: ${{ (github.ref == 'ref/head/main') && (env.ANACONDA_API_TOKEN != '') && (steps.artifact-upload.outputs.artifact-id != '') }} run: | anaconda upload -m ${{ env.CONDA }}/envs/biobuild/conda-bld/*/*.tar.bz2