Skip to content

Commit a4f07f4

Browse files
committed
changed apply acc to last working plan
1 parent 11b9818 commit a4f07f4

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

.github/workflows/terraform-apply.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
name: 'Terraform Test'
2-
31
on:
2+
pull_request:
3+
branches:
4+
- main
45
issue_comment:
5-
types: [created, edited]
6+
types: [edited, created]
67

78
permissions:
89
contents: read
910

1011
jobs:
11-
terraform-test:
12-
name: 'Terraform Test'
12+
terraform:
13+
name: 'Terraform Apply'
1314
runs-on: self-hosted
14-
if: |
15-
github.event.issue.pull_request &&
16-
startsWith(github.event.comment.body, '/test')
15+
if: |
16+
(github.event_name == 'pull_request') ||
17+
(github.event_name == 'issue_comment' &&
18+
github.event.issue.pull_request != '' &&
19+
contains(github.event.comment.body, '/test'))
1720
1821
steps:
1922
- name: Checkout

.github/workflows/test-workflow.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)