From 1a9f4ec32be34d82b9978cc262b188284c97f795 Mon Sep 17 00:00:00 2001
From: Gerhard Schlager <gerhard.schlager@discourse.org>
Date: Thu, 28 Mar 2024 19:46:55 +0100
Subject: [PATCH] DEV: Skip tests when `migrations-tests` workflow is changed

---
 .github/workflows/migration-tests.yml | 2 ++
 .github/workflows/tests.yml           | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/.github/workflows/migration-tests.yml b/.github/workflows/migration-tests.yml
index 258ab0a096b..987a2abd728 100644
--- a/.github/workflows/migration-tests.yml
+++ b/.github/workflows/migration-tests.yml
@@ -3,12 +3,14 @@ name: Migration Tests
 on:
   pull_request:
     paths:
+      - ".github/workflows/migration-tests.yml"
       - "migrations/**"
   push:
     branches:
       - main
       - stable
     paths:
+      - ".github/workflows/migration-tests.yml"
       - "migrations/**"
 
 concurrency:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 5ec6e5c7ba5..cf8fc0670d0 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -3,6 +3,7 @@ name: Tests
 on:
   pull_request:
     paths-ignore:
+      - ".github/workflows/migration-tests.yml"
       - "migrations/**"
   push:
     branches:
@@ -10,6 +11,7 @@ on:
       - beta
       - stable
     paths-ignore:
+      - ".github/workflows/migration-tests.yml"
       - "migrations/**"
 
 concurrency: