Restrict workflow runs to specific paths

This commit is contained in:
Mbucari
2025-12-22 12:50:06 -07:00
committed by Michael Bucari-Tovo
parent ad3a767057
commit 1299d91d08
2 changed files with 10 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ on:
# using the `master` branch as the default branch. # using the `master` branch as the default branch.
push: push:
branches: [master] branches: [master]
paths:
- .github/workflows/deploy.yml
- docs/**
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
@@ -61,4 +64,4 @@ jobs:
steps: steps:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4

View File

@@ -6,8 +6,14 @@ name: validate
on: on:
push: push:
branches: [master] branches: [master]
paths:
- Source/**
- .github/workflows/**
pull_request: pull_request:
branches: [master] branches: [master]
paths:
- Source/**
- .github/workflows/**
jobs: jobs:
get_version: get_version: