rebuild map only if python script has changed

This commit is contained in:
Klaus Zerwes 2022-09-22 12:33:48 +02:00
parent b393b2e7ac
commit 66ad0b4034

View File

@ -11,14 +11,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: check changed files
uses: tj-actions/verify-changed-files@v11.1
id: verify-changed-files
with:
files: |
fqcn-fixer.py
- name: Set up Python 3.9
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: install pyyaml
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: run test
- name: rebuild fqcn map
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
./fqcn-fixer.py -f example.yml -u