From 1299d91d08dfd760996b4c6b4aa2e77ea1b2da53 Mon Sep 17 00:00:00 2001 From: Mbucari <37587114+Mbucari@users.noreply.github.com> Date: Mon, 22 Dec 2025 12:50:06 -0700 Subject: [PATCH] Restrict workflow runs to specific paths --- .github/workflows/deploy.yml | 5 ++++- .github/workflows/validate.yml | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 68b139cf..e8011cb2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,9 @@ on: # using the `master` branch as the default branch. push: branches: [master] + paths: + - .github/workflows/deploy.yml + - docs/** # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -61,4 +64,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 892b2680..df267a04 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -6,8 +6,14 @@ name: validate on: push: branches: [master] + paths: + - Source/** + - .github/workflows/** pull_request: branches: [master] + paths: + - Source/** + - .github/workflows/** jobs: get_version: