Skip to content

Commit cf86ded

Browse files
authored
ci: skip downstream connector tests if no source code is changed (#101)
1 parent 024cf26 commit cf86ded

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/connector-tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,13 @@ jobs:
9494
steps:
9595
- name: Abort if extra not changed (${{matrix.cdk_extra}})
9696
id: no_changes
97-
if: ${{ matrix.cdk_extra != 'n/a' && needs.cdk_changes.outputs[matrix.cdk_extra] == 'false' }}
97+
if: ${{ needs.cdk_changes.outputs['src'] == 'false' || matrix.cdk_extra != 'n/a' && needs.cdk_changes.outputs[matrix.cdk_extra] == 'false' }}
9898
run: |
99-
echo "Aborting job as specified extra not changed: ${{matrix.cdk_extra}} = ${{ needs.cdk_changes.outputs[matrix.cdk_extra] }}"
99+
echo "Aborting job."
100+
echo "Source code changed: ${{ needs.cdk_changes.outputs['src'] }}"
101+
if [ "${{ matrix.cdk_extra }}" != "n/a" ]; then
102+
echo "Extra not changed: ${{ matrix.cdk_extra }} = ${{ needs.cdk_changes.outputs[matrix.cdk_extra] }}"
103+
fi
100104
echo "> Skipped '${{matrix.connector}}' (no relevant changes)" >> $GITHUB_STEP_SUMMARY
101105
echo "status=cancelled" >> $GITHUB_OUTPUT
102106
exit 0

0 commit comments

Comments
 (0)