Commit 5e5d5a8 1 parent 3d54728 commit 5e5d5a8 Copy full SHA for 5e5d5a8
File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 36
36
runs-on : ubuntu-latest
37
37
38
38
steps :
39
+ - name : Validate Project Name
40
+ env :
41
+ PROJECT_NAME : ${{ github.event.inputs.project_name }}
42
+ run : |
43
+ if ! [[ "$PROJECT_NAME" =~ ^[a-zA-Z][a-zA-Z0-9]*$ ]]; then
44
+ echo "Project Name must begin with a letter and contain only alphanumeric characters."
45
+ exit 1
46
+ fi
47
+
39
48
- name : Checkout
40
49
uses : actions/checkout@v2
41
50
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Resources:
34
34
RDSDatabase :
35
35
Type : AWS::RDS::DBInstance
36
36
Properties :
37
- DBName : !Sub '${ProjectName}-db '
37
+ DBName : !Sub '${ProjectName}'
38
38
MasterUsername : !Ref DBUser
39
39
Engine : postgres
40
40
MasterUserPassword : !Ref DBPassword
You can’t perform that action at this time.
0 commit comments