Skip to content

Commit

Permalink
Update GitHub action to run if it changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssewell committed Aug 20, 2023
1 parent 86e18da commit 76eb19f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/kicad-klc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@ name: "KLC Compliance Check"

on:
# Triggers the workflow on push or pull request events but only for the "main" branch
# and if
# and if relevant files have changed, including this GitHub action files
push:
branches: [ "main" ]
paths: "SimPanel.pretty/*.kicad_mod"
paths:
- "SimPanel.pretty/*.kicad_mod"
- ".github/workflows/kicad-klc-check.yml"
pull_request:
branches: [ "main" ]
paths: "SimPanel.pretty/*.kicad_mod"
paths:
- "SimPanel.pretty/*.kicad_mod"
- ".github/workflows/kicad-klc-check.yml"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# This workflow contains a single job called "build"
build:
KLC_ComplianceCheck:
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 76eb19f

Please sign in to comment.