From daefdf4e9cb92312efa7011b46881ffaeb874b4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adeodato=20Sim=C3=B3?= <73768+dato@users.noreply.github.com>
Date: Wed, 1 Dec 2021 17:10:21 -0300
Subject: [PATCH] Specify force_ci/** branch pattern that can force a workflow
 to run

The previous commit restricting build.yml to only run on 'main'
(same as newly-introduced debian.yml). But it's useful to be able
to see CI runs, during development _before_ opening a pull request.

A branch pattern is added so that forcing CI to run is possible.
---
 .github/workflows/build.yml  | 4 +++-
 .github/workflows/debian.yml | 5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a40b203..45205ae 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -5,7 +5,9 @@ on:
   pull_request:
   push:
     branches:
-      - main
+      - 'main'
+      - 'force_ci/all/**'    # For development, forcing all workflows to run.
+      - 'force_ci/build/**'  # For debugging and/or only forcing this workflow.
 
 jobs:
   # Build the RocksDB C library and cache the result.
diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml
index 2a7c68d..1bcd88a 100644
--- a/.github/workflows/debian.yml
+++ b/.github/workflows/debian.yml
@@ -4,8 +4,9 @@ on:
   pull_request:
   push:
     branches:
-      - main
-      - workflows/debian  # For debugging.
+      - 'main'
+      - 'force_ci/all/**'     # For development, forcing all workflows to run.
+      - 'force_ci/debian/**'  # For debugging and/or only forcing this workflow.
 
 jobs:
   debian-build:
-- 
GitLab