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.
Austin S. Hemmelgarn committed
Feb 10, 2022 at 08:24 UTC
a8517522270ce3f23b09e8492aef9a665f406585
1 file changed
+11
.github/workflows/repoconfig-packages.yml
+11
@@ -3,6 +3,16 @@
3
name: Repository Packages
4
on:
5
workflow_dispatch: null
6
+ pull_request:
7
+ paths:
8
+ - packaging/repoconfig/**
9
+ - .github/workflows/repoconfig-packages.yml
10
+ push:
11
+ branches:
12
+ - master
13
+ paths:
14
+ - packaging/repoconfig/**
15
+ - .github/workflows/repoconfig-packages.yml
16
env:
17
DO_NOT_TRACK: 1
18
jobs:
@@ -51,6 +61,7 @@ jobs:
61
-v $PWD:/netdata ${{ matrix.base_image }}:${{ matrix.version }} \
62
/netdata/packaging/repoconfig/build-${{ matrix.format }}.sh
63
- name: Upload Packages
64
+ if: github.event_name != 'pull_request' && github.repository == 'netdata/netdata'
65
shell: bash
66
env:
67
PKG_CLOUD_TOKEN: ${{ secrets.PACKAGE_CLOUD_API_KEY }}