-
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (50 loc) · 1.89 KB
/
build-status-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: ✅Build Status Check
run-name: ✅Build Status Check (${{ github.base_ref }} branch)
defaults:
run:
shell: pwsh
on:
pull_request_target:
branches: [main, preview]
jobs:
get_sdk_version:
name: Get SDK Version
runs-on: ubuntu-latest
outputs:
sdk-version: ${{ steps.get-sdk-version.outputs.sdk-version }}
steps:
- name: Get SDK Version From Environment Variable
id: get-sdk-version
run: |
"sdk-version=${{ vars.NET_SDK_VERSION }}" >> $env:GITHUB_OUTPUT;
build_branch_validator:
name: Build ${{ vars.PROJECT_NAME }} Project
needs: get_sdk_version
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected]
with:
project-name: "${{ vars.PROJECT_NAME }}"
build-config: Debug
net-sdk-version: "${{ needs.get_sdk_version.outputs.sdk-version }}"
checkout-ref: ${{ github.event.pull_request.head.ref }}
checkout-repository: ${{ github.event.pull_request.head.repo.full_name }}
secrets:
cicd-pat: ${{ secrets.CICD_TOKEN }}
build_branch_validator_shared:
name: Build ${{ vars.PROJECT_NAME }}Shared Project
needs: get_sdk_version
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected]
with:
project-name: "${{ vars.PROJECT_NAME }}Shared"
build-config: Debug
net-sdk-version: "${{ needs.get_sdk_version.outputs.sdk-version }}"
checkout-ref: ${{ github.event.pull_request.head.ref }}
checkout-repository: ${{ github.event.pull_request.head.repo.full_name }}
secrets:
cicd-pat: ${{ secrets.CICD_TOKEN }}
build_status_check:
name: ${{ vars.PROJECT_NAME }} Build Status Check
needs: [build_branch_validator, build_branch_validator_shared]
runs-on: ubuntu-latest
steps:
- name: Print Status Check Pass Message
run: Write-Host "::notice::✅Build Status Check Passed✅";