Skip to content

Commit

Permalink
Only test modified roles
Browse files Browse the repository at this point in the history
closes OSPRH-11820

Signed-off-by: Fabricio Aguiar <[email protected]>
  • Loading branch information
fao89 committed Jan 14, 2025
1 parent 7d4ade2 commit 7d765d9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/molecule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Check whether the role is modified
id: check_role
run: |
if [[ $(git diff --name-only roles | grep ${{ matrix.tested_role }}) ]]; then
echo "modified=true" >> $GITHUB_OUTPUT
else
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}
fi
env:
GH_TOKEN: ${{ github.token }}
- name: Install ansible
run: pip install ansible
- name: Install collections
Expand Down

0 comments on commit 7d765d9

Please sign in to comment.