Skip to content

Commit

Permalink
chore(ci): only run license scan for the currently edited chart
Browse files Browse the repository at this point in the history
also fix typo
  • Loading branch information
cwrau committed Sep 23, 2024
1 parent 51e250b commit cd1145d
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/check-licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,15 @@ on:
- synchronize
paths:
- charts/**
merge_group:
types:
- checks_requested

jobs:
getAllCharts:
uses: ./.github/workflows/get-all-charts.yaml
with:
showLibraryCharts: false
getChangedChart:
uses: ./.github/workflows/get-changed-chart.yaml
check-licenses:
name: check licenses
runs-on: ubuntu-latest
needs: getAllCharts
strategy:
fail-fast: false
matrix:
chart: ${{ fromJson(needs.getAllCharts.outputs.charts) }}
needs: getChangedChart
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- run: pip install yq
- run: ./.github/scrips/scan-for-licenses.sh ${{ matrix.chart }}
- run: ./.github/scripts/scan-for-licenses.sh ${{ fromJson(needs.getChangedChart.outputs.chart) }}

0 comments on commit cd1145d

Please sign in to comment.