Skip to content

Commit

Permalink
Workaround non-run CI for required workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Sep 16, 2024
1 parent 208e0df commit aae04fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ jobs:
run: |
changed=$(ct list-changed --config config.yaml)
if [[ -n "$changed" ]]; then
echo "changed=true" >> $GITHUB_OUTPUT
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", "install", "install --upgrade"]'
contains-changes: ${{ needs.prepare.outputs.changed == 'true' }}

release:
name: Release
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ on:
default: '["install"]'
type: string
description: Matrix of actions to run
contains-changes:
required: false
default: true
type: boolean
description: The ref contains changes requiring tests

jobs:
ct:
name: Run chart-testing
runs-on: ubuntu-latest
if: inputs.contains-changes
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit aae04fa

Please sign in to comment.