Skip to content

Commit b6639ed

Browse files
committed
ci(ansible): gate health-check-ansible on changed files
Skip the workflow unless ansible/**, ansible-galaxy-requirements.yaml, or the workflow itself changed. Matches the pattern in health-check-pr.yaml. Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
1 parent 2f1d232 commit b6639ed

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/health-check-ansible.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,26 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16+
changed-files:
17+
runs-on: ubuntu-latest
18+
outputs:
19+
should-run: ${{ steps.check.outputs.any_changed }}
20+
steps:
21+
- uses: actions/checkout@v6
22+
with:
23+
fetch-depth: 0
24+
25+
- id: check
26+
uses: step-security/changed-files@v47
27+
with:
28+
files: |
29+
ansible/**
30+
ansible-galaxy-requirements.yaml
31+
.github/workflows/health-check-ansible.yaml
32+
1633
require-label:
34+
needs: changed-files
35+
if: needs.changed-files.outputs.should-run == 'true'
1736
uses: autowarefoundation/autoware-github-actions/.github/workflows/require-label.yaml@v1
1837
with:
1938
label: run:health-check

0 commit comments

Comments
 (0)