Remove git reset - replace with git stash (#40669)

This commit is contained in:
Dimitris Sotirakis
2021-10-20 11:39:46 +03:00
committed by GitHub
parent 7f8a01aa7d
commit ba60bec11b
2 changed files with 45 additions and 10 deletions
+4 -1
View File
@@ -1011,7 +1011,8 @@ def ensure_cuetsified_step():
],
'commands': [
'# Make sure the git tree is clean.',
'git reset --hard',
'# Stashing changes, since packages that were produced in build-backend step are needed.',
'git stash',
'./bin/linux-amd64/grafana-cli cue gen-ts --grafana-root .',
'# The above command generates Typescript files (*.gen.ts) from all appropriate .cue files.',
'# It is required that the generated Typescript be in sync with the input CUE files.',
@@ -1019,5 +1020,7 @@ def ensure_cuetsified_step():
'./node_modules/.bin/eslint . --ext .gen.ts --fix',
'# If any filenames are emitted by the below script, run the generator command `grafana-cli cue gen-ts` locally and commit the result.',
'./scripts/clean-git-or-error.sh',
'# Un-stash changes.',
'git stash pop',
],
}