aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2024-08-13 16:05:20 +0100
committerAlex Schofield <git@ajschof.me>2024-08-13 16:05:20 +0100
commit6f5759ceccb7f84cbd7898a057504f49a0cbb790 (patch)
tree3bc91b9f354e6cfdd1f95ae7f19add8b57b6f076
parentc849807a008f738b0e3b9230521b4112ae8a71b8 (diff)
downloadde-project-bentley-6f5759ceccb7f84cbd7898a057504f49a0cbb790.tar.gz
de-project-bentley-6f5759ceccb7f84cbd7898a057504f49a0cbb790.zip
ci: check if python files exist
-rw-r--r--.github/workflows/python.yml17
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
git.ajschof.me — hosted by ajschofield — powered by cgit