Skip to content

Commit 28b452e

Browse files
committed
fix(monitoring): fix job step on fetch (#2752)
Signed-off-by: wuhuizuo <[email protected]> Signed-off-by: wuhuizuo <[email protected]>
1 parent 3f8a625 commit 28b452e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prow-jobs/pingcap-monitoring-periodics.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ periodics:
1414
containers:
1515
- name: check
1616
image: golang:1.21.6
17-
command: [bash, -ce]
1817
env:
1918
- name: TARGET
2019
value: master
@@ -25,13 +24,14 @@ periodics:
2524
volumeMounts:
2625
- name: github-token
2726
mountPath: /etc/github
28-
readOnly: true
27+
readOnly: true
28+
command: [bash, -cxeo, pipefail]
2929
args: &args
3030
- |
3131
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)
3333
git add monitor-snapshot/$TARGET
34-
if git diff --exit-code --name-status; then
34+
if git diff --cached --exit-code --name-status; then
3535
echo "🤷 No changes happened."
3636
exit 0
3737
fi

0 commit comments

Comments
 (0)