Skip to content

Commit

Permalink
Update workflows to only run when relevant files change
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeChannings committed Sep 19, 2024
1 parent 6d76843 commit 7d52d41
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/binary-cache.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: "Binary Cache"
on:
pull_request:
push:
paths:
- config/*
- *.nix

jobs:
binary-cache:
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- main
paths:
- config/*

jobs:
build:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/template-darwin-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ on:
paths:
- .github/workflows/template-darwin-system.yaml
- templates/darwin-system/*
- config/*

jobs:
template-test:
permissions:
contents: write
runs-on: macos-latest
steps:
- uses: "actions/checkout@v4"
Expand Down

0 comments on commit 7d52d41

Please sign in to comment.