We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11b9818 commit a4f07f4Copy full SHA for a4f07f4
.github/workflows/terraform-apply.yml
@@ -1,19 +1,22 @@
1
-name: 'Terraform Test'
2
-
3
on:
+ pull_request:
+ branches:
4
+ - main
5
issue_comment:
- types: [created, edited]
6
+ types: [edited, created]
7
8
permissions:
9
contents: read
10
11
jobs:
- terraform-test:
12
- name: 'Terraform Test'
+ terraform:
13
+ name: 'Terraform Apply'
14
runs-on: self-hosted
- if: |
15
- github.event.issue.pull_request &&
16
- startsWith(github.event.comment.body, '/test')
+ if: |
+ (github.event_name == 'pull_request') ||
17
+ (github.event_name == 'issue_comment' &&
18
+ github.event.issue.pull_request != '' &&
19
+ contains(github.event.comment.body, '/test'))
20
21
steps:
22
- name: Checkout
.github/workflows/test-workflow.yml
0 commit comments