We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccc145e commit 9fd05e1Copy full SHA for 9fd05e1
1 file changed
.github/workflows/_helm-e2e.yml
@@ -131,6 +131,18 @@ jobs:
131
ref: ${{ steps.get-checkout-ref.outputs.CHECKOUT_REF }}
132
fetch-depth: 0
133
134
+ - name: Validate Inputs
135
+ run: |
136
+ cd ${{ github.workspace }}
137
+ folders=($(find . -maxdepth 1 -type d ! -name ".*" -printf "%f\n" | tr '[:upper:]' '[:lower:]'))
138
+ echo "folders: ${folders[@]}"
139
+ echo "example: ${{ inputs.example }}"
140
+ example_lower=$(echo "CodeGen" | tr '[:upper:]' '[:lower:]')
141
+ if [[ ! " ${folders[@]} " =~ " ${example_lower} " ]]; then
142
+ echo "Error: Input '${example_lower}' is not in the list of folders."
143
+ exit 1
144
+ fi
145
+
146
- name: Set variables
147
env:
148
example: ${{ inputs.example }}
0 commit comments