Skip to content

Commit 69fb34a

Browse files
authored
Update pull_request.yaml
1 parent ea6bf5d commit 69fb34a

File tree

1 file changed

+4
-37
lines changed

1 file changed

+4
-37
lines changed

.github/workflows/pull_request.yaml

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: "Validate Docs and Go Code"
1+
name: "Pull Request"
22
on: pull_request
33

44
jobs:
5-
tfplugindocs:
5+
docs:
6+
name: "Ensure 'make docs' has been run"
67
runs-on: ubuntu-latest
78
steps:
89
- name: Checkout repo
@@ -18,25 +19,8 @@ jobs:
1819
name: Validate No Changes
1920
run: |
2021
git diff --exit-code
21-
- name: Issue Comment on PR
22-
if: steps.docs-need-updating.output.outcome != 'success'
23-
uses: thollander/[email protected]
24-
with:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
message: |
27-
:warning: Terraform Provider Docs need updating!
28-
29-
Run:
30-
31-
```bash
32-
$ make docs
33-
```
34-
35-
Then commit the changes.
36-
pr_number: ${{ github.event.pull_request.number }}
37-
comment_tag: docs-need-updating
38-
3922
gofmt:
23+
name: "Ensure 'make fmt' has been run"
4024
runs-on: ubuntu-latest
4125
steps:
4226
- name: Checkout repo
@@ -50,20 +34,3 @@ jobs:
5034
name: Validate No Changes
5135
run: |
5236
git diff --exit-code
53-
- name: Issue Comment on PR
54-
if: steps.go-needs-formatting.output.outcome != 'success'
55-
uses: thollander/[email protected]
56-
with:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
message: |
59-
:warning: Go code needs formatting!
60-
61-
Run:
62-
63-
```bash
64-
$ make fmt
65-
```
66-
67-
Then commit the changes.
68-
pr_number: ${{ github.event.pull_request.number }}
69-
comment_tag: go-needs-formatting

0 commit comments

Comments
 (0)