Skip to content

Commit

Permalink
Add a generic status steps when chart CI is not required
Browse files Browse the repository at this point in the history
This will help to (auto-)merge PR when the charts are not affected.
  • Loading branch information
LeoColomb authored Dec 26, 2024
1 parent 638021a commit 159038a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,28 @@ 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
packages: write
id-token: write
secrets:
GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

0 comments on commit 159038a

Please sign in to comment.