diff --git a/.github/actions/package/action.yml b/.github/actions/package/action.yml index 0a3aba2..1cce2e4 100644 --- a/.github/actions/package/action.yml +++ b/.github/actions/package/action.yml @@ -75,8 +75,16 @@ runs: name: "${{ inputs.operating_system }}; ${{ inputs.python_version }}" path: dist/ - - name: Publish + - uses: dorny/paths-filter@v2 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + id: has_code_changes + with: + filters: | + src: + - 'src/**' + + - name: Publish + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.has_code_changes.outputs.src == 'true' }} shell: ${{ inputs.shell_name }} run: | ${{ inputs.source_command }} ${{ inputs.script_prefix }}Activate${{ inputs.script_extension }} diff --git a/.github/actions/validate/action.yml b/.github/actions/validate/action.yml index 8d39940..6b54339 100644 --- a/.github/actions/validate/action.yml +++ b/.github/actions/validate/action.yml @@ -69,4 +69,4 @@ runs: shell: ${{ inputs.shell_name }} run: | ${{ inputs.source_command }} ${{ inputs.script_prefix }}Activate${{ inputs.script_extension }} - python Build.py Test + python Build.py Test --code-coverage