Skip to content

Commit 9ac1c87

Browse files
fix: validate mode input for end-to-end testing workflow
1 parent 212612d commit 9ac1c87

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/e2e-action-container-structure-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ jobs:
3737
name: Basic test with text output format
3838
runs-on: ubuntu-latest
3939
steps:
40+
- name: Validate mode input
41+
run: |
42+
case "${{ inputs.mode }}" in
43+
ref|image) ;;
44+
*)
45+
echo "Unsupported mode '${{ inputs.mode }}'. Expected 'ref' or 'image'."
46+
exit 1
47+
;;
48+
esac
49+
4050
- name: Checkout repository
4151
uses: actions/checkout@v6
4252

0 commit comments

Comments
 (0)