mirror of
https://github.com/zerwes/ansible-fqcn-converter.git
synced 2024-11-23 09:16:38 -06:00
use github native path conditions instead of external action
This commit is contained in:
parent
0399a6cc12
commit
124de4a676
11
.github/workflows/testupdatemap.yml
vendored
11
.github/workflows/testupdatemap.yml
vendored
@ -3,7 +3,9 @@
|
|||||||
name: rebuild map
|
name: rebuild map
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths: '*.py'
|
||||||
push:
|
push:
|
||||||
|
paths: '*.py'
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "20 5 * * 5"
|
- cron: "20 5 * * 5"
|
||||||
jobs:
|
jobs:
|
||||||
@ -11,23 +13,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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
|
- name: Set up Python 3.9
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
- name: install pyyaml
|
- name: install pyyaml
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pyyaml
|
pip install pyyaml
|
||||||
- name: rebuild fqcn map
|
- name: rebuild fqcn map
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
||||||
run: |
|
run: |
|
||||||
./fqcn-fixer.py -f example.yml -u
|
./fqcn-fixer.py -f example.yml -u
|
||||||
|
Loading…
Reference in New Issue
Block a user