mirror of
https://github.com/zerwes/ansible-fqcn-converter.git
synced 2024-11-23 09:16:38 -06:00
rebuild map only if python script has changed
This commit is contained in:
parent
b393b2e7ac
commit
66ad0b4034
11
.github/workflows/testupdatemap.yml
vendored
11
.github/workflows/testupdatemap.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user