@@ -5,10 +5,10 @@ name: Detect breaking change with Grafana
5
5
on :
6
6
pull_request :
7
7
paths :
8
- - ' go.mod'
9
- - ' go.sum'
8
+ - " go.mod"
9
+ - " go.sum"
10
10
branches :
11
- - ' main'
11
+ - " main"
12
12
13
13
jobs :
14
14
buildPR :
@@ -17,41 +17,37 @@ jobs:
17
17
permissions :
18
18
contents : read
19
19
steps :
20
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21
- with :
22
- persist-credentials : false
23
- path : ' ./grafana-plugin-sdk-go'
24
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25
- with :
26
- persist-credentials : false
27
- repository : ' grafana/grafana'
28
- path : ' ./grafana'
29
- - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # 5.3.0
30
- with :
31
- cache : false
32
- go-version : ' ~1.22'
33
- check-latest : true
20
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21
+ with :
22
+ persist-credentials : false
23
+ path : " ./grafana-plugin-sdk-go"
24
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25
+ with :
26
+ persist-credentials : false
27
+ repository : " grafana/grafana"
28
+ path : " ./grafana"
29
+ - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # 5.3.0
30
+ with :
31
+ cache : false
32
+ go-version : " ~1.22"
33
+ check-latest : true
34
34
35
- - name : Check if branch exists in Grafana
36
- working-directory : ' ./grafana'
37
- env :
38
- BRANCH : ${{ github.head_ref }}
39
- run : |
40
- if git ls-remote --heads --quiet --exit-code origin "$BRANCH"; then
41
- echo "Found branch $BRANCH in Grafana"
42
- git fetch origin "$BRANCH" && git checkout "$BRANCH"
43
- else
44
- echo "Branch $BRANCH not found in Grafana"
45
- fi
35
+ - name : Check if branch exists in Grafana
36
+ working-directory : " ./grafana"
37
+ env :
38
+ BRANCH : ${{ github.head_ref }}
39
+ run : |
40
+ if git ls-remote --heads --quiet --exit-code origin "$BRANCH"; then
41
+ echo "Found branch $BRANCH in Grafana"
42
+ git fetch origin "$BRANCH" && git checkout "$BRANCH"
43
+ else
44
+ echo "Branch $BRANCH not found in Grafana"
45
+ fi
46
46
47
- - name : Link sdk
48
- working-directory : ' ./grafana'
49
- run : go mod edit -replace github.com/grafana/grafana-plugin-sdk-go=../grafana-plugin-sdk-go
47
+ - name : Link sdk
48
+ working-directory : " ./grafana"
49
+ run : go mod edit -replace github.com/grafana/grafana-plugin-sdk-go=../grafana-plugin-sdk-go
50
50
51
- - name : Automatic updates
52
- working-directory : ' ./grafana'
53
- run : go mod tidy
54
-
55
- - name : Build Grafana
56
- working-directory : ' ./grafana'
57
- run : make build-go
51
+ - name : Build Grafana
52
+ working-directory : " ./grafana"
53
+ run : make build-go
0 commit comments