Skip to content

Commit 6e4d3a5

Browse files
author
rahul-infra
committed
Made changes in terraform workflow
1 parent daa8fbf commit 6e4d3a5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/terraform.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
- master
88
pull_request_target:
9+
branches:
10+
- main
11+
- master
912
types:
1013
- opened
1114
- edited
@@ -17,13 +20,12 @@ on:
1720
jobs:
1821
prTitlecheck:
1922
name: PR title check
20-
if: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.base.ref == 'main' }}
23+
if: ${{ github.event_name == 'pull_request_target' }}
2124
uses: ./.github/workflows/pr-title.yaml
2225

2326
versionPreview:
2427
name: Version Preview
25-
needs: prTitlecheck
26-
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
28+
if: ${{ github.event_name == 'pull_request' }}
2729
uses: ./.github/workflows/version-preview.yaml
2830

2931
preCommitCheck:

0 commit comments

Comments
 (0)