Skip to content

Commit 9f0055f

Browse files
committed
changed branch back to main, changed if condition
1 parent 40dc403 commit 9f0055f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/terraform-apply.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
pull_request:
33
branches:
4-
- PP-12736-tf-workflow
4+
- main
55
issue_comment:
66
types: [edited, created]
77

@@ -13,9 +13,11 @@ jobs:
1313
name: 'Terraform Apply'
1414
runs-on: self-hosted
1515
if: |
16-
github.event.issue.pull_request &&
16+
(github.event_name == 'pull_request') ||
17+
(github.event_name == 'issue_comment' &&
18+
github.event.issue.pull_request != null &&
1719
(contains(github.event.comment.body, '/test') ||
18-
contains(github.event.comment.body, '/rc_test'))
20+
contains(github.event.comment.body, '/rc_test')))
1921
2022
steps:
2123
- name: Checkout

0 commit comments

Comments
 (0)