From bab05c8515a7a99b6b799b1bb18013926713dd14 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 2 Jan 2021 17:23:33 +0100 Subject: [PATCH] actions: run tasks based on set of modified paths --- .github/workflows/build-docs.yml | 6 ++++++ .github/workflows/build-gluon.yml | 16 ++++++++++++++++ .github/workflows/check-patches.yml | 9 +++++++++ contrib/actions/generate-actions.py | 16 ++++++++++++++++ 4 files changed, 47 insertions(+) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index cf0176de..2312b47b 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -1,8 +1,14 @@ name: Build Documentation on: push: + paths: + - 'docs/**' + - '.github/workflows/build-docs.yml' pull_request: types: [opened, synchronize, reopened] + paths: + - 'docs**/' + - '.github/workflows/build-docs.yml' jobs: build-documentation: name: docs diff --git a/.github/workflows/build-gluon.yml b/.github/workflows/build-gluon.yml index 9e4ce9a3..889bfb82 100644 --- a/.github/workflows/build-gluon.yml +++ b/.github/workflows/build-gluon.yml @@ -9,8 +9,24 @@ on: - master - next - v20* + paths: + - "modules" + - "Makefile" + - "scripts/**" + - "package/**" + - "patches/**" + - "targets/**" + - ".github/workflows/build-gluon.yml" pull_request: types: [opened, synchronize, reopened] + paths: + - "modules" + - "Makefile" + - "scripts/**" + - "package/**" + - "patches/**" + - "targets/**" + - ".github/workflows/build-gluon.yml" jobs: build_firmware: strategy: diff --git a/.github/workflows/check-patches.yml b/.github/workflows/check-patches.yml index ecdaf0d7..2aeb09fd 100644 --- a/.github/workflows/check-patches.yml +++ b/.github/workflows/check-patches.yml @@ -1,8 +1,17 @@ +--- name: Check patches on: push: + paths: + - 'modules' + - 'patches/**' + - '.github/workflows/check-patches.yml' pull_request: types: [opened, synchronize, reopened] + paths: + - 'modules' + - 'patches/**' + - '.github/workflows/check-patches.yml' jobs: check-patches: name: Check patches diff --git a/contrib/actions/generate-actions.py b/contrib/actions/generate-actions.py index 78d5b2a5..3b5a0984 100755 --- a/contrib/actions/generate-actions.py +++ b/contrib/actions/generate-actions.py @@ -13,8 +13,24 @@ on: - master - next - v20* + paths: + - "modules" + - "Makefile" + - "scripts/**" + - "package/**" + - "patches/**" + - "targets/**" + - ".github/workflows/build-gluon.yml" pull_request: types: [opened, synchronize, reopened] + paths: + - "modules" + - "Makefile" + - "scripts/**" + - "package/**" + - "patches/**" + - "targets/**" + - ".github/workflows/build-gluon.yml" jobs: build_firmware: strategy: