summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2021-03-19 09:03:07 -0400
committerGitHub <noreply@github.com>2021-03-19 09:03:07 -0400
commitdc5f3b562f4efdd5b8dea5a5271923af0e05363b (patch)
tree4ecd23a47254627c0b047febac3351492fa10768 /.github
parent6577bf2a3023b3ca64a20a1bd434e98c1c1bd321 (diff)
Fix handling of nightly and release packages in GHA workflows. (#10819)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/packaging.yml4
1 files changed, 2 insertions, 2 deletions
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 }}