summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2022-02-10 08:24:01 -0500
committerGitHub <noreply@github.com>2022-02-10 08:24:01 -0500
commita8517522270ce3f23b09e8492aef9a665f406585 (patch)
tree97b8b39e0427c830fa84ee21c8f493a2c0e9d552
parentb0b0a12da71c634ba05df8fa5457a7c122c5d5c1 (diff)
Update repoconfig package build workflow to run on PRs and pushes. (#12102)
This way we get proper confirmation that changes to these packages build properly, and they get automatically deployed when updates are pushed.
-rw-r--r--.github/workflows/repoconfig-packages.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/repoconfig-packages.yml b/.github/workflows/repoconfig-packages.yml
index 665d46d684..b8d0ff67ce 100644
--- a/.github/workflows/repoconfig-packages.yml
+++ b/.github/workflows/repoconfig-packages.yml
@@ -3,6 +3,16 @@
name: Repository Packages
on:
workflow_dispatch: null
+ pull_request:
+ paths:
+ - packaging/repoconfig/**
+ - .github/workflows/repoconfig-packages.yml
+ push:
+ branches:
+ - master
+ paths:
+ - packaging/repoconfig/**
+ - .github/workflows/repoconfig-packages.yml
env:
DO_NOT_TRACK: 1
jobs:
@@ -51,6 +61,7 @@ jobs:
-v $PWD:/netdata ${{ matrix.base_image }}:${{ matrix.version }} \
/netdata/packaging/repoconfig/build-${{ matrix.format }}.sh
- name: Upload Packages
+ if: github.event_name != 'pull_request' && github.repository == 'netdata/netdata'
shell: bash
env:
PKG_CLOUD_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_KEY }}