Skip to content

Commit

Permalink
Merge pull request #471 from netbox-community/leo/fail-safe-ci
Browse files Browse the repository at this point in the history
Add a generic status steps when chart CI is not required
  • Loading branch information
RangerRick authored Jan 2, 2025
2 parents 638021a + e0e7b38 commit 6bbc546
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,24 @@ jobs:
action-matrix: '["lint-and-install", "install --upgrade"]'
secrets: inherit

results:
name: Status
if: always()
runs-on: ubuntu-latest
needs:
- prepare
- test
steps:
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled')
}}
release:
name: Release
if: contains(fromJSON('["refs/heads/main"]'), github.ref)
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/release.yml
permissions:
contents: write
Expand Down

0 comments on commit 6bbc546

Please sign in to comment.