From 375105a02cb3d476c23b4c7441f3f712fe3eced1 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Thu, 18 Jan 2024 17:36:17 +0100 Subject: [PATCH] ci: skip Github CI on branch pushes for forks Similar to the previous commit, however the behavior isn't opt-in with NO_BRANCH, because Github CI lacks custom variables. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab9704c0af0ff1..27b468612fa6c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,10 @@ on: # See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push. push: branches: - - '**' + # Disable CI on branch pushes to forks. It will still run for pull requests. + # This prevents CI from running twice for typical pull request workflows. + - 'bitcoin/**' + - 'bitcoin-core/**' tags-ignore: - '**'