name: Pull Request on: pull_request: 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.yaml with: environment_name: pull_request version_number: ${{ github.run_id }} secrets: inherit