helm-charts/.github/workflows/pr-validate.yaml
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 6fd154cb99
ci: 🧠
2022-07-27 10:44:31 +02:00

56 lines
1.5 KiB
YAML

name: "Pull Request: Validate"
on:
pull_request:
branches:
- main
- development
types:
- opened
- edited
- reopened
- ready_for_review
- synchronize
concurrency:
group: ${{ github.head_ref }}-pr-validate
cancel-in-progress: true
jobs:
pr-metadata:
uses: bjw-s/helm-charts/.github/workflows/pr-metadata.yaml@main
pre-commit-check:
uses: bjw-s/helm-charts/.github/workflows/pre-commit-check.yaml@main
needs:
- pr-metadata
with:
modifiedFiles: ${{ needs.pr-metadata.outputs.addedOrModifiedFiles }}
# charts-changelog:
# uses: bjw-s/helm-charts/.github/workflows/charts-changelog.yaml@main
# needs:
# - pr-metadata
# - pre-commit-check
# with:
# isRenovatePR: ${{ needs.pr-metadata.outputs.isRenovatePR }}
# modifiedCharts: ${{ needs.pr-metadata.outputs.addedOrModifiedCharts }}
charts-lint:
uses: bjw-s/helm-charts/.github/workflows/charts-lint.yaml@main
needs:
- pr-metadata
# - charts-changelog
with:
checkoutCommit: ${GITHUB_SHA}
chartChangesDetected: ${{ needs.pr-metadata.outputs.chartChangesDetected }}
chartChanges: ${{ needs.pr-metadata.outputs.addedOrModifiedCharts }}
# charts-test:
# uses: bjw-s/helm-charts/.github/workflows/charts-test.yaml@main
# needs:
# - pr-metadata
# - charts-changelog
# with:
# checkoutCommit: ${{ needs.charts-changelog.outputs.commitHash }}
# chartChangesDetected: ${{ needs.pr-metadata.outputs.addedOrModified }}