From 1cffb703622025709c10334dd280710938d03806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Mon, 17 Feb 2025 20:45:22 -0800 Subject: [PATCH] ci: trigger packaging tests on pull requests --- .github/workflows/debian_packages.yml | 8 ++++++-- .github/workflows/rpm_packages.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/debian_packages.yml b/.github/workflows/debian_packages.yml index 20edc9c7..e291ff4f 100644 --- a/.github/workflows/debian_packages.yml +++ b/.github/workflows/debian_packages.yml @@ -6,10 +6,14 @@ on: tags: - '[0-9]+.[0-9]+.[0-9]+' schedule: - - cron: '0 0 * * 1,4' # Runs at 00:00 UTC on Monday and Thursday + - cron: '0 0 * * 1,4' # Runs at 00:00 UTC on Monday and Thursday + pull_request: + branches: [ main ] + paths: + - 'packaging/debian/**' # Only run on changes to the debian packaging files jobs: test-packages: - if: github.event_name == 'schedule' + if: github.event_name == 'schedule' || github.event_name == 'pull_request' name: Test Packages runs-on: ubuntu-latest steps: diff --git a/.github/workflows/rpm_packages.yml b/.github/workflows/rpm_packages.yml index caea482b..90c966d7 100644 --- a/.github/workflows/rpm_packages.yml +++ b/.github/workflows/rpm_packages.yml @@ -6,10 +6,14 @@ on: tags: - '[0-9]+.[0-9]+.[0-9]+' schedule: - - cron: '0 0 * * 1,4' # Runs at 00:00 UTC on Monday and Thursday + - cron: '0 0 * * 1,4' # Runs at 00:00 UTC on Monday and Thursday + pull_request: + branches: [ main ] + paths: + - 'packaging/rpm/**' # Only run on changes to the rpm packaging files jobs: test-package: - if: github.event_name == 'schedule' + if: github.event_name == 'schedule' || github.event_name == 'pull_request' name: Test Packages runs-on: ubuntu-latest steps: