Skip to content

Commit ece3cc3

Browse files
authored
Merge pull request #147 from SumoLogic/ssain-tfproviderlint-github-action
GitHub Action for tfproviderlint
2 parents 80c9aeb + 3987ab7 commit ece3cc3

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This is a basic workflow to run tfproviderlint
2+
name: tfproviderlint
3+
4+
# Controls when the action will run. Triggers the workflow on push or pull request
5+
# events but only for the master branch
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
13+
jobs:
14+
# This workflow contains a single job called "build"
15+
build:
16+
# The type of runner that the job will run on
17+
runs-on: ubuntu-latest
18+
19+
# Steps represent a sequence of tasks that will be executed as part of the job
20+
steps:
21+
- uses: actions/[email protected]
22+
- uses: bflad/tfproviderlint-github-action@master
23+
with:
24+
args: ./...

sumologic/resource_sumologic_scheduled_view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func resourceSumologicScheduledViewUpdate(d *schema.ResourceData, meta interface
115115
func resourceToScheduledView(d *schema.ResourceData) ScheduledView {
116116
var startTimeParsed, err = time.Parse(time.RFC3339, d.Get("start_time").(string))
117117
if err != nil {
118-
panic(err)
118+
log.Fatal(err)
119119
}
120120
return ScheduledView{
121121
ID: d.Id(),

0 commit comments

Comments
 (0)