File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ periodics:
14
14
containers :
15
15
- name : check
16
16
image : golang:1.21.6
17
- command : [bash, -ce]
18
17
env :
19
18
- name : TARGET
20
19
value : master
@@ -25,13 +24,14 @@ periodics:
25
24
volumeMounts :
26
25
- name : github-token
27
26
mountPath : /etc/github
28
- readOnly : true
27
+ readOnly : true
28
+ command : [bash, -cxeo, pipefail]
29
29
args : &args
30
30
- |
31
31
printenv
32
- go run ./cmd/monitoring.go --tag= $TARGET --config monitoring.yaml
32
+ go run ./cmd/monitoring.go --tag $TARGET --config monitoring.yaml --token $(cat /etc/github/token)
33
33
git add monitor-snapshot/$TARGET
34
- if git diff --exit-code --name-status; then
34
+ if git diff --cached --exit-code --name-status; then
35
35
echo "🤷 No changes happened."
36
36
exit 0
37
37
fi
You can’t perform that action at this time.
0 commit comments