File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ name: Validate CloudFormation on PR
22
33on :
44 pull_request :
5- types : [opened, synchronize]
65 paths :
76 - ' cloudformation/**'
7+ push :
8+ branches :
9+ - main
810
911permissions :
1012 pull-requests : write
@@ -13,6 +15,7 @@ permissions:
1315jobs :
1416 validate-cfn :
1517 runs-on : ubuntu-latest
18+ if : ${{ github.event.pull_request.merged != true }}
1619 steps :
1720 - uses : actions/checkout@v4
1821
4851 runs-on : ubuntu-latest
4952 if : ${{ github.event.pull_request.merged == true }}
5053 steps :
51- - name : Log PR merged status
52- run : |
53- echo "PR merged: ${{ github.event.pull_request.merged }}"
54-
5554 - name : Configure AWS credentials
5655 uses : aws-actions/configure-aws-credentials@v4
5756 with :
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Resources:
1919 - Key : Environment
2020 Value : !Ref Environment
2121 - Key : Project
22- Value : GitHubActionsTestingPRCICD-2
22+ Value : GitHubActionsTestingPRCICD-3
2323
2424Outputs :
2525 BucketName :
You can’t perform that action at this time.
0 commit comments