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