name: Pull Request on: pull_request: types: [opened, synchronize, reopened, closed] branches: - main jobs: build-deploy-api: if: github.event_name == 'pull_request' && github.event.action != 'closed' name: build-deploy-api uses: ./.github/workflows/api.yaml with: calling_workflow: pull_request version_number: ${{ github.run_id }} secrets: inherit build-deploy-app: if: github.event_name == 'pull_request' && github.event.action != 'closed' name: build-deploy-app uses: ./.github/workflows/app.yaml with: calling_workflow: pull_request version_number: ${{ github.run_id }} secrets: inherit