From b8321cac0f498a2bd73a7c148a8fac52870f7acc Mon Sep 17 00:00:00 2001 From: Willem Date: Sat, 8 Feb 2020 20:52:36 +0100 Subject: [PATCH] Finetune formatting action Only trigger action when the action is edited, or when source code is actually being changed. --- .github/workflows/format.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 55cef96a..5e3e4714 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,5 +1,17 @@ name: Format sourcecode -on: [push, pull_request] +on: + push: + branches: master + paths: + - '.github/workflows/format.yml' + - 'src/**.c' + - 'src/**.h' + pull_request: + types: [opened, synchronize, reopened] + paths: + - '.github/workflows/format.yml' + - 'src/**.c' + - 'src/**.h' jobs: format: runs-on: ubuntu-latest