diff --git a/.github/workflows/build_and_publish_to_test_pypi.yml b/.github/workflows/build_and_publish_to_test_pypi.yml index 2b4e7fe..3b79ea0 100644 --- a/.github/workflows/build_and_publish_to_test_pypi.yml +++ b/.github/workflows/build_and_publish_to_test_pypi.yml @@ -8,9 +8,27 @@ on: branches: [ main ] jobs: + check-source-changes: + runs-on: ubuntu-latest + outputs: + run_job: ${{ steps.changed-files.outputs.any_changed }} + steps: + - name: Checkout Sourcecode + uses: actions/checkout@v4 + + - name: Check for changes in setup.py/cfg + id: changed-files + uses: tj-actions/changed-files@v45.0.2 + with: + files: | + setup.py + setup.cfg + build-n-publish-test-pypi: - name: Build and Publish + name: Build and Publish To Test PyPi runs-on: ubuntu-latest + needs: check-source-changes + if: needs.check-source-changes.outputs.run_job == 'true' steps: - uses: actions/checkout@v4