File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,31 @@ name: Deploy to Staging (AWS S3 + CloudFront)
33on :
44 push :
55 branches : [ develop, staging ]
6- workflow_dispatch : # Allow manual trigger
76
87permissions :
98 contents : read
109 id-token : write # Required for AWS OIDC authentication
1110
1211
1312jobs :
13+
14+ commit_lint :
15+ name : Validate Commit Messages
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Validate PR Title
23+ uses : wagoid/commitlint-github-action@v5
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26+ with :
27+ configFile : .commitlintrc.json
1428 build-and-deploy-staging :
1529 name : Build and Deploy to Staging
30+ needs : commit_lint
1631 runs-on : ubuntu-latest
1732 environment :
1833 name : aws-stag
You can’t perform that action at this time.
0 commit comments