From dc5f3b562f4efdd5b8dea5a5271923af0e05363b Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Fri, 19 Mar 2021 09:03:07 -0400 Subject: Fix handling of nightly and release packages in GHA workflows. (#10819) --- .github/workflows/packaging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 460126a3eb..2920246fd3 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -110,7 +110,7 @@ jobs: mkdir -p artifacts docker run --platform ${{ matrix.platform }} -v $PWD/artifacts:/artifacts local/package-builder:${{ matrix.distro }}${{ matrix.version }} - name: Upload - if: github.env.runtype == 'release' || github.env.runtype == 'nightly' || github.env.runtype == 'devel' + if: github.event_name == 'workflow_dispatch' shell: bash run: | # This figures out the distribution ID for the upload. @@ -120,7 +120,7 @@ jobs: -F "package[package_file]=@${pkgfile}" \ https://${{ secrets.PACKAGE_CLOUD_API_TOKEN }}:@packagecloud.io/api/v1/repos/${{ env.repo }}/packages.json || exit 1 - name: Clean - if: github.env.runtype == 'release' || github.env.runtype == 'nightly' || github.env.runtype == 'devel' + if: github.event_name == 'workflow_dispatch' shell: bash env: REPO: ${{ env.repo }} -- cgit v1.2.3