diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/python.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 4f752b7..7d5b5b1 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -7,7 +7,24 @@ on: branches: [development, staging] jobs: + + check-if-py-files-exist: + runs-on: ubuntu-latest + outputs: + py_files_exist: ${{ steps.check.outputs.py_files_exist }} + steps: + - uses: actions/checkout@v2 + - id: check_files + run: | + if [ -n "$(find . -name '*.py')" ]; then + echo "::set-output name=py_files_exist::true" + else + echo "::set-output name=py_files_exist::false" + fi + quality-checks: + needs: check-if-py-files-exist + if: ${{ needs.check-if-py-files-exist.outputs.py_files_exist == 'true' }} runs-on: ubuntu-latest steps: - uses : actions/checkout@v2 |
