Skip to content

Add a generic status steps when chart CI is not required #956

Add a generic status steps when chart CI is not required

Add a generic status steps when chart CI is not required #956

Workflow file for this run

# yamllint disable rule:document-start
# https://docs.github.com/actions
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.list-changed.outputs.changed }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config config.yaml)
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
test:
name: Test
if: needs.prepare.outputs.changed == 'true'
needs:
- prepare
uses: ./.github/workflows/test.yml
with:
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: github.ref == 'refs/heads/main'
uses: ./.github/workflows/release.yml

Check failure on line 65 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 65, Col: 11): Secret GPG_PASSPHRASE is required, but not provided while calling.
permissions:
contents: write
packages: write
id-token: write
secrets:
GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }}