feat: Enhance logging and error handling in sync-ssh-keys.sh #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| # Run all individual checks in parallel | |
| lint: | |
| uses: ./.github/workflows/lint.yml | |
| version-check: | |
| uses: ./.github/workflows/check-version.yml | |
| if: github.event_name == 'pull_request' | |
| test: | |
| uses: ./.github/workflows/test.yml | |
| # Final status check | |
| ci-success: | |
| runs-on: ubuntu-latest | |
| needs: [lint, test, version-check] | |
| if: always() | |
| steps: | |
| - name: Check all jobs status | |
| run: | | |
| if [[ "${{ needs.lint.result }}" != "success" ]]; then | |
| echo "Lint job failed" | |
| exit 1 | |
| fi | |
| if [[ "${{ needs.test.result }}" != "success" ]]; then | |
| echo "Test job failed" | |
| exit 1 | |
| fi | |
| if [[ "${{ github.event_name }}" == "pull_request" && "${{ needs.version-check.result }}" != "success" ]]; then | |
| echo "Version check job failed" | |
| exit 1 | |
| fi | |
| echo "All CI checks passed!" |