refactor ♻️: Refactor PR check workflow by consolidating steps and removing redundant code
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 6s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Successful in 7s

This refactoring consolidates the steps in the PR check workflow, reducing redundancy and improving efficiency.
This commit is contained in:
2026-02-14 09:02:55 +01:00
parent aad77acf42
commit 945717ffbb

View File

@@ -66,7 +66,7 @@ jobs:
run: | run: |
ansible-lint ansible-lint
handle_failures: handle_failures:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [leak_test, lint_test] needs: [leak_test, lint_test]
if: needs.leak_test.result != 'success' || needs.lint_test.result != 'success' if: needs.leak_test.result != 'success' || needs.lint_test.result != 'success'
@@ -117,7 +117,7 @@ handle_failures:
-d '{"state":"closed"}' \ -d '{"state":"closed"}' \
"$API/pulls/$PR" "$API/pulls/$PR"
handle_success: handle_success:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [leak_test, lint_test] needs: [leak_test, lint_test]
if: needs.leak_test.result == 'success' && needs.lint_test.result == 'success' if: needs.leak_test.result == 'success' && needs.lint_test.result == 'success'