Remove git reset - replace with git stash (#40669)
This commit is contained in:
@@ -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',
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user