From d3f5adcfa4377fcb1e1bac57fda0df65337fb9d3 Mon Sep 17 00:00:00 2001
From: David Bauer <mail@david-bauer.net>
Date: Thu, 9 Apr 2020 20:33:25 +0200
Subject: [PATCH] github: actions: only build certain branches

This enables build-testing only on master as well as next and release
branches.
---
 .github/workflows/build-gluon.yml   | 4 ++++
 contrib/actions/generate-actions.py | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/.github/workflows/build-gluon.yml b/.github/workflows/build-gluon.yml
index 6347a213a..1e9d13ec0 100644
--- a/.github/workflows/build-gluon.yml
+++ b/.github/workflows/build-gluon.yml
@@ -5,6 +5,10 @@
 name: Build Gluon
 on:
   push:
+    branches:
+      - master
+      - next
+      - v20*
   pull_request:
     types: [opened, synchronize, reopened]
 jobs:
diff --git a/contrib/actions/generate-actions.py b/contrib/actions/generate-actions.py
index d4003360f..a39a05c79 100755
--- a/contrib/actions/generate-actions.py
+++ b/contrib/actions/generate-actions.py
@@ -9,6 +9,10 @@ ACTIONS_HEAD = """
 name: Build Gluon
 on:
   push:
+    branches:
+      - master
+      - next
+      - v20*
   pull_request:
     types: [opened, synchronize, reopened]
 jobs:
-- 
GitLab