Skip to content

Commit 7eb854b

Browse files
committed
init
1 parent 5c22e3c commit 7eb854b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/deploy-sandbox.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ permissions:
2020
contents: read # This is required for actions/checkout
2121

2222
jobs:
23+
validate--inputs:
24+
runs-on: ubuntu-latest
25+
environment: development
26+
27+
steps:
28+
- name: Validate inputs
29+
run: |
30+
if ! [[ "$SANDBOX_NAME" =~ ^[a-z0-9]{1,9}$ ]]; then
31+
echo "Sandbox name must match [a-z0-9]{1,9} (lowercase letters and digits only, 1-9 chars)."
32+
exit 1
33+
fi
34+
env:
35+
SANDBOX_NAME: ${{ github.event.inputs.sandbox_name }}
36+
37+
terraform--main:
38+
runs-on: ubuntu-latest
2339
terraform_process:
2440
runs-on: ubuntu-latest
2541
environment: development

0 commit comments

Comments
 (0)