mirror of
https://github.com/zerwes/ansible-fqcn-converter.git
synced 2024-11-23 01:16:22 -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
|
||||
on:
|
||||
pull_request:
|
||||
paths: '*.py'
|
||||
push:
|
||||
paths: '*.py'
|
||||
schedule:
|
||||
- cron: "20 5 * * 5"
|
||||
jobs:
|
||||
@ -11,23 +13,14 @@ 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: 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