Files
noahspan-root/.github/workflows/pull_request.yaml

35 lines
693 B
YAML

name: Pull Request
on:
pull_request:
permissions:
id-token: write
contents: read
jobs:
changes:
uses: ./.github/workflows/changes.yaml
build-api:
if: ${{ needs.changes.outputs.api == 'true' }}
name: build-api
needs:
- changes
uses: ./.github/workflows/api_build.yaml
with:
environment_name: pull_request
version_number: ${{ github.run_id }}
secrets: inherit
build-app:
if: ${{ needs.changes.outputs.app == 'true' }}
name: build-app
needs:
- changes
uses: ./.github/workflows/app_build_deploy.yaml
with:
environment_name: pull_request
version_number: ${{ github.run_id }}
secrets: inherit