Adicionei esta etapa ao CI
check_if_there_is_change:
- run:
name: Check that no git-tracked files were modified
command: |
FILES_MODIFIED="$(git status --porcelain)"
if [[ -n "$FILES_MODIFIED" ]]; then
echo "The following files were modified or added during the build process:"
echo "$FILES_MODIFIED"
echo "This will likely prevent successful publishing. Please run the build locally and include these changes in your pull request)"
exit 1
fi
Mas falha
yaml.scanner.ScannerError: while scanning a simple key
in ".circleci/main.yml", line 638, column 11
could not find expected ':'
in ".circleci/main.yml", line 639, column 9
O IntelliJ mostra elemento filho inválido no mapeamento de bloco.
Como mudar isso? Quero saber se os arquivos foram modificados.
No YAML, onde o recuo é crucial para definir uma estrutura, o valor multilinha da
command
chave deve ser recuado apropriadamente em relação à própria chave para garantir que os dados sejam estruturados corretamente: