We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c22e3c commit 7eb854bCopy full SHA for 7eb854b
1 file changed
.github/workflows/deploy-sandbox.yml
@@ -20,6 +20,22 @@ permissions:
20
contents: read # This is required for actions/checkout
21
22
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
39
terraform_process:
40
runs-on: ubuntu-latest
41
environment: development
0 commit comments