Skip to content

Commit cc16ff0

Browse files
committed
Fix build matrix condition to properly detect workflow_dispatch trigger
- Added debug output to show event name and inputs - Fixed empty string check for build_sources input - Now correctly expands matrix for manual/scheduled runs - Manual runs without custom input will test all 6 sources (current + 5 PRs)
1 parent dbbef6b commit cc16ff0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/encryption-custom-compatibility.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,15 @@ jobs:
4545
- name: Setup build matrix
4646
id: setup-matrix
4747
run: |
48+
# Debug: Show trigger information
49+
echo "Event name: ${{ github.event_name }}"
50+
echo "Build sources input: '${{ github.event.inputs.build_sources }}'"
51+
4852
# Use custom build sources if provided, otherwise use defaults based on trigger
49-
if [ -n "${{ github.event.inputs.build_sources }}" ]; then
50-
BUILD_SOURCES='${{ github.event.inputs.build_sources }}'
53+
BUILD_SOURCES_INPUT="${{ github.event.inputs.build_sources }}"
54+
55+
if [ -n "$BUILD_SOURCES_INPUT" ] && [ "$BUILD_SOURCES_INPUT" != "" ]; then
56+
BUILD_SOURCES="$BUILD_SOURCES_INPUT"
5157
echo "Using custom build sources from workflow input"
5258
elif [ "${{ github.event_name }}" == "schedule" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
5359
# For scheduled/manual runs: test against multiple PRs for comprehensive validation

0 commit comments

Comments
 (0)