use github native path conditions instead of external action

This commit is contained in:
Klaus Zerwes 2022-09-22 14:10:21 +02:00
parent 0399a6cc12
commit 124de4a676

View File

@ -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