@/ui Callable Workflows #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD [Main] | |
on: | |
pull_request: | |
branches: # PRs to the following branches will trigger the workflow | |
- main | |
paths: | |
- ".github/workflows/**" | |
- "Dockerfile" | |
- "apps/**" | |
- "packages/**" | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: "${{ github.workflow }} @ ${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
ci: | |
name: CI | |
uses: ./.github/workflows/_ci.yaml | |
apps-path-filter: | |
name: | |
uses: ./.github/workflows/_app-path-filter.yaml | |
secrets: inherit | |
cd-dev: | |
needs: | |
- ci | |
- apps-path-filter | |
if: ${{ needs.apps-path-filter.outputs.apps == 'true' }} | |
uses: ./.github/workflows/_cd-dev.yaml | |
secrets: inherit | |
cd-prod: | |
needs: | |
- ci | |
- apps-path-filter | |
if: ${{ needs.apps-path-filter.outputs.apps == 'true' }} | |
uses: ./.github/workflows/_cd-prod.yaml | |
secrets: inherit |