From 5c28c032f300ae0d2e3c68495985fd8b2f8827b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20H=C3=B6rstrup?= Date: Mon, 19 Feb 2024 16:09:37 +0100 Subject: [PATCH] Trigger CI when workflow files are changed (#36) Changes of the workflow files now trigger the execution of the whole pipeline --------- Co-authored-by: Marius Brehler --- .github/workflows/build_and_deploy_docu.yml | 1 + .github/workflows/code_coverage.yml | 6 ++++++ .github/workflows/lint.yml | 6 +++++- .github/workflows/tests.yml | 4 ++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_deploy_docu.yml b/.github/workflows/build_and_deploy_docu.yml index 03f5866..e28996c 100644 --- a/.github/workflows/build_and_deploy_docu.yml +++ b/.github/workflows/build_and_deploy_docu.yml @@ -6,6 +6,7 @@ on: - 'main' paths: - 'docs/**' + - '.github/workflows/build_and_deploy_docu.yml' permissions: diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index 2ad2b66..fde9ace 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -2,13 +2,19 @@ name: Measure code coverage on: push: + branches: + - 'main' paths: + - 'pfdl_scheduler/**' - 'tests/**' + - '.github/workflows/**' pull_request: branches: - 'main' paths: + - 'pfdl_scheduler/**' - 'tests/**' + - '.github/workflows/**' permissions: contents: read diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index de318a5..3ed209f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,11 +6,15 @@ on: - 'main' paths: - 'pfdl_scheduler/**' - pull_request: + - 'tests/**' + - '.github/workflows/**' + pull_request: branches: - 'main' paths: - 'pfdl_scheduler/**' + - 'tests/**' + - '.github/workflows/**' permissions: contents: read diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c15f9bc..b71c28f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,11 +4,15 @@ on: push: paths: - 'pfdl_scheduler/**' + - 'tests/**' + - '.github/workflows/**' pull_request: branches: - 'main' paths: - 'pfdl_scheduler/**' + - 'tests/**' + - '.github/workflows/**' permissions: contents: read