Rename detect job output to any-chart-changed for clarity
This commit is contained in:
1 file changed
+4
-4
@@ -8,7 +8,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
charts: ${{ steps.detect.outputs.charts }}
|
charts: ${{ steps.detect.outputs.charts }}
|
||||||
any: ${{ steps.detect.outputs.any }}
|
any-chart-changed: ${{ steps.detect.outputs.any-chart-changed }}
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout Repository"
|
- name: "Checkout Repository"
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -26,17 +26,17 @@ jobs:
|
|||||||
done
|
done
|
||||||
echo "charts=$CHARTS" >> "$GITHUB_OUTPUT"
|
echo "charts=$CHARTS" >> "$GITHUB_OUTPUT"
|
||||||
if [ "$CHARTS" = "[]" ]; then
|
if [ "$CHARTS" = "[]" ]; then
|
||||||
echo "any=false" >> "$GITHUB_OUTPUT"
|
echo "any-chart-changed=false" >> "$GITHUB_OUTPUT"
|
||||||
echo "No chart directories changed - nothing to build."
|
echo "No chart directories changed - nothing to build."
|
||||||
else
|
else
|
||||||
echo "any=true" >> "$GITHUB_OUTPUT"
|
echo "any-chart-changed=true" >> "$GITHUB_OUTPUT"
|
||||||
echo "Changed charts: $CHARTS"
|
echo "Changed charts: $CHARTS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build-chart:
|
build-chart:
|
||||||
name: "Build ${{ matrix.chart }}"
|
name: "Build ${{ matrix.chart }}"
|
||||||
needs: detect-changed-charts
|
needs: detect-changed-charts
|
||||||
if: needs.detect-changed-charts.outputs.any == 'true'
|
if: needs.detect-changed-charts.outputs.any-chart-changed == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
Reference in new issue
Block a user