✅Build CSharp Status Check #460
Workflow file for this run
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: ✅Build CSharp Status Check | |
run-name: ✅Build CSharp Status Check | |
defaults: | |
run: | |
shell: pwsh | |
on: | |
pull_request: | |
branches: main | |
jobs: | |
detect_fork: | |
name: Detect Fork | |
runs-on: ubuntu-latest | |
outputs: | |
is_fork: ${{ steps.detect_fork.outputs.is_fork }} | |
steps: | |
- name: Detect Fork | |
id: detect_fork | |
run: | | |
if ("${{ github.event.pull_request.head.repo.full_name }}" -ne "${{ github.event.pull_request.base.repo. full_name }}") { | |
echo "is_fork=true" >> $env:GITHUB_OUTPUT; | |
} else { | |
echo "is_fork=false" >> $env:GITHUB_OUTPUT; | |
} | |
csharp_projects_build_status_check: | |
name: CSharp Projects Build Status Check | |
needs: detect_fork | |
if: ${{ needs.detect_fork.outputs.is_fork == 'false' }} | |
uses: ./.github/workflows/build-csharp-solution.yml | |
with: | |
build-config: Release | |
checkout-repository: ${{ github.event.pull_request.head.repo.full_name }} | |
checkout-ref: ${{ github.event.pull_request.head.ref }} |