From cca403800821bded04e663722acefb54bb2cde5d Mon Sep 17 00:00:00 2001 From: Eduardo Cabral <47820549+FerroEduardo@users.noreply.github.com> Date: Thu, 7 Apr 2022 14:49:44 -0300 Subject: [PATCH] Run actions only if code related files changes (#3000) --- .github/workflows/build.yml | 14 +++++++++++++- .github/workflows/prettify.yml | 14 +++++++++++++- .github/workflows/update_directory.yml | 14 +++++++++++++- 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e3feabd..efd76cc7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,17 @@ name: Build -on: [push, pull_request] +on: + push: + paths: + - 'src/**' + - '**.yml' + - '**.xml' + - '**.Dockerfile' + pull_request: + paths: + - 'src/**' + - '**.yml' + - '**.xml' + - '**.Dockerfile' jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/prettify.yml b/.github/workflows/prettify.yml index da58f5f0..a5d7c318 100644 --- a/.github/workflows/prettify.yml +++ b/.github/workflows/prettify.yml @@ -1,5 +1,17 @@ name: Prettify -on: [push, pull_request] +on: + push: + paths: + - 'src/**' + - '**.yml' + - '**.xml' + - '**.Dockerfile' + pull_request: + paths: + - 'src/**' + - '**.yml' + - '**.xml' + - '**.Dockerfile' jobs: prettier: runs-on: ubuntu-latest diff --git a/.github/workflows/update_directory.yml b/.github/workflows/update_directory.yml index 0a9265c5..90a90f49 100644 --- a/.github/workflows/update_directory.yml +++ b/.github/workflows/update_directory.yml @@ -1,6 +1,18 @@ # This GitHub Action updates the DIRECTORY.md file (if needed) when doing a git push name: Update Directory -on: [push, pull_request] +on: + push: + paths: + - 'src/**' + - '**.yml' + - '**.xml' + - '**.Dockerfile' + pull_request: + paths: + - 'src/**' + - '**.yml' + - '**.xml' + - '**.Dockerfile' jobs: update_directory_md: runs-on: ubuntu-latest