Skip to content

Commit

Permalink
wip runs workflows only on relevant path changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wookietreiber committed Feb 12, 2024
1 parent e666a38 commit d107355
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ name: ansible-lint

on:
pull_request:
paths:
- .github/workflows/ansible-lint.yml
- galaxy.yml
- meta
- roles
push:
branches:
- main
- wip/next
paths:
- .github/workflows/ansible-lint.yml
- galaxy.yml
- meta
- roles

jobs:

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/molecule-ssh-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ name: molecule-ssh-audit

on:
pull_request:
paths:
- .config/molecule
- .github/workflows/molecule-ssh-audit.yml
- roles/ssh_base
- roles/ssh_audit
push:
branches:
- main
- wip/next
paths:
- .config/molecule
- .github/workflows/molecule-ssh-audit.yml
- roles/ssh_base
- roles/ssh_audit

jobs:

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/molecule-ssh-audited.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@ name: molecule-ssh-audited

on:
pull_request:
paths:
- .config/molecule
- .github/workflows/molecule-ssh-audited.yml
- roles/ssh_base
- roles/ssh
- roles/ssh_audited
push:
branches:
- main
- wip/next
paths:
- .config/molecule
- .github/workflows/molecule-ssh-audited.yml
- roles/ssh_base
- roles/ssh
- roles/ssh_audited

jobs:

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/molecule-ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ name: molecule-ssh

on:
pull_request:
paths:
- .config/molecule
- .github/workflows/molecule-ssh.yml
- roles/ssh_base
- roles/ssh
push:
branches:
- main
- wip/next
paths:
- .config/molecule
- .github/workflows/molecule-ssh.yml
- roles/ssh_base
- roles/ssh

jobs:

Expand Down

0 comments on commit d107355

Please sign in to comment.