Skip to content

Commit b8e84bd

Browse files
resolved issue 471 (#486)
* feat: adicionar automação para gerenciar PRs inativos com GitHub Actions * chore: adiciona teste para o stale * chore: ajusta action para exibir mensage de falha do lint * chore: remove arquivo hello_world * chore: remove arquivo hello_world * chore: ajusta action para exibir mensage de falha do lint
1 parent 5d33319 commit b8e84bd

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/check-lint.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,34 @@ on:
44
push:
55
branches:
66
- main
7+
78
jobs:
89
lint:
910
name: Check Lint
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: Checkout repo
1314
uses: actions/checkout@v4
15+
1416
- name: Poetry Setup
1517
uses: snok/install-poetry@v1
18+
1619
- name: Install Dependencies
1720
run: poetry install
21+
1822
- name: Run Lint Check
1923
id: lint
2024
run: |
21-
make check
25+
set -o pipefail
26+
make check 2>&1 | tee lint_output.log
2227
continue-on-error: true
28+
2329
- name: Lint Failed
2430
if: steps.lint.outcome != 'success'
2531
run: |
26-
echo -e "\033[0;31m Please, run \`make format\` and push the changes to fix this error"
32+
echo -e "\033[0;31m Linting failed. See the errors below:\n"
33+
cat lint_output.log
34+
echo -e "\n\033[0;33m Please, run \`make format\` and push the changes to fix this error."
2735
exit 1
36+
37+

0 commit comments

Comments
 (0)