diff --git a/.github/workflows/testupdatemap.yml b/.github/workflows/testupdatemap.yml index 183b00e..823748e 100644 --- a/.github/workflows/testupdatemap.yml +++ b/.github/workflows/testupdatemap.yml @@ -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