diff --git a/.github/workflows/connector-tests.yml b/.github/workflows/connector-tests.yml index fb25bc72..b2b05602 100644 --- a/.github/workflows/connector-tests.yml +++ b/.github/workflows/connector-tests.yml @@ -94,9 +94,13 @@ jobs: steps: - name: Abort if extra not changed (${{matrix.cdk_extra}}) id: no_changes - if: ${{ matrix.cdk_extra != 'n/a' && needs.cdk_changes.outputs[matrix.cdk_extra] == 'false' }} + if: ${{ needs.cdk_changes.outputs['src'] == 'false' || matrix.cdk_extra != 'n/a' && needs.cdk_changes.outputs[matrix.cdk_extra] == 'false' }} run: | - echo "Aborting job as specified extra not changed: ${{matrix.cdk_extra}} = ${{ needs.cdk_changes.outputs[matrix.cdk_extra] }}" + echo "Aborting job." + echo "Source code changed: ${{ needs.cdk_changes.outputs['src'] }}" + if [ "${{ matrix.cdk_extra }}" != "n/a" ]; then + echo "Extra not changed: ${{ matrix.cdk_extra }} = ${{ needs.cdk_changes.outputs[matrix.cdk_extra] }}" + fi echo "> Skipped '${{matrix.connector}}' (no relevant changes)" >> $GITHUB_STEP_SUMMARY echo "status=cancelled" >> $GITHUB_OUTPUT exit 0