diff --git a/.github/workflows/add-new-item-to-project.yml b/.github/workflows/add-new-item-to-project.yml
index 8effcd9..6070c3e 100644
--- a/.github/workflows/add-new-item-to-project.yml
+++ b/.github/workflows/add-new-item-to-project.yml
@@ -28,7 +28,7 @@ jobs:
add_new_issue_to_project:
name: Add New Issue
needs: get_item_number
- uses: KinsonDigital/Infrastructure/.github/workflows/add-item-to-project.yml@v13.0.0
+ uses: KinsonDigital/Infrastructure/.github/workflows/add-item-to-project.yml@v13.1.0
with:
org-name: "${{ vars.ORGANIZATION_NAME }}"
org-project-name: "${{ vars.ORG_PROJECT_NAME }}"
diff --git a/.github/workflows/build-status-check.yml b/.github/workflows/build-status-check.yml
index 25fa210..0b2219f 100644
--- a/.github/workflows/build-status-check.yml
+++ b/.github/workflows/build-status-check.yml
@@ -15,20 +15,24 @@ on:
jobs:
build_main_project:
name: ${{ vars.PROJECT_NAME }} Build Status Check
- uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v13.0.0
+ uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v13.1.0
with:
project-name: "${{ vars.PROJECT_NAME }}"
build-config: Debug
net-sdk-version: "${{ vars.NET_SDK_VERSION }}"
+ checkout-ref: ${{ github.event.pull_request.head.ref }}
+ checkout-repository: ${{ github.event.pull_request.head.repo.full_name }}
build_testing_app:
name: ${{ vars.PROJECT_NAME }} Build Status Check
- uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v13.0.0
+ uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v13.1.0
with:
project-name: "${{ vars.PROJECT_NAME }}Testing"
build-config: Debug
net-sdk-version: "${{ vars.NET_SDK_VERSION }}"
+ checkout-ref: ${{ github.event.pull_request.head.ref }}
+ checkout-repository: ${{ github.event.pull_request.head.repo.full_name }}
build_status_check:
diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml
index 82e1798..731eebc 100644
--- a/.github/workflows/prepare-release.yml
+++ b/.github/workflows/prepare-release.yml
@@ -32,22 +32,24 @@ jobs:
- name: Validate Workflow Inputs
run: |
$releaseType = "${{ inputs.release-type }}".ToLower();
-
+
if ("${{ vars.PROJECT_NAME }}".Trim() -eq "") {
Write-Host "::error::The project name input cannot be empty.";
exit 1;
}
+
if ($releaseType -eq "") {
Write-Host "::error::The release type input cannot be empty.";
exit 1;
}
+
if ($releaseType -ne 'preview' -and $releaseType -ne 'production') {
Write-Host "::error::The release type input must be either 'Preview' or 'Production'.";
exit 1;
}
-
+
$releaseVersion = "${{ inputs.release-version }}".Trim().ToLower();
if ($releaseVersion -eq "") {
@@ -55,6 +57,7 @@ jobs:
exit 1;
}
+
$prodVersionRegex = "v[0-9]+\.[0-9]+\.[0-9]+";
$prevVersionRegex = "v[0-9]+\.[0-9]+\.[0-9]+-preview\.[0-9]+";
@@ -71,7 +74,7 @@ jobs:
prepare_release:
name: Prepare ${{ inputs.release-type }} Release Of ${{ vars.PROJECT_NAME }}
needs: print_validate_workflow
- uses: KinsonDigital/Infrastructure/.github/workflows/prepare-release.yml@v13.0.0
+ uses: KinsonDigital/Infrastructure/.github/workflows/prepare-release.yml@v13.1.0
with:
project-name: "${{ vars.PROJECT_NAME }}"
release-type: "${{ inputs.release-type }}"
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 88bb0ba..100f312 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -39,7 +39,7 @@ jobs:
run_release:
name: Performing ${{ inputs.release-type }} Release of ${{ vars.PROJECT_NAME }} (${{ inputs.release-type == 'Production' && 'Release' || 'Debug' }})
needs: determine_release_notes_path
- uses: KinsonDigital/Infrastructure/.github/workflows/dotnet-lib-release.yml@v13.0.0
+ uses: KinsonDigital/Infrastructure/.github/workflows/dotnet-lib-release.yml@v13.1.0
with:
project-name: "${{ vars.PROJECT_NAME}}"
release-type: "${{ inputs.release-type }}"
diff --git a/.github/workflows/sync-bot.yml b/.github/workflows/sync-bot.yml
index b4aa2a5..eb8056a 100644
--- a/.github/workflows/sync-bot.yml
+++ b/.github/workflows/sync-bot.yml
@@ -13,7 +13,7 @@ on:
jobs:
sync_bot:
- name: Sync Bot Status Check
+ name: Sync Bot
if: ${{ !github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
@@ -32,7 +32,7 @@ jobs:
Write-Host "::notice::Issue: $issueNumber";
if ($manuallyExecuted -and $issueNumber -eq "0") {
- Write-Host "::notice::The issue or PR number must be a value greater than 0.";
+ Write-Host "::error::The issue or PR number must be a value greater than 0.";
exit 1;
}
@@ -40,12 +40,13 @@ jobs:
1. Organization name
2. Project name
3. Issue number
- 4. Event Type - set to issue event type
+ 4. Event type - set to issue event type
5. PAT
#>
deno run `
--allow-net `
"$scriptUrl" `
+ "${{ vars.ORGANIZATION_NAME }}" `
"${{ vars.PROJECT_NAME }}" `
"$issueNumber" `
"issue" `
diff --git a/.github/workflows/sync-pr-to-issue.yml b/.github/workflows/sync-pr-to-issue.yml
index 636015f..39e2afe 100644
--- a/.github/workflows/sync-pr-to-issue.yml
+++ b/.github/workflows/sync-pr-to-issue.yml
@@ -16,8 +16,10 @@ on:
jobs:
initial_sync:
name: Start Initial Sync
- if: ${{ github.event_name == 'pull_request_target' }}
- uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v13.0.0
+ if: |
+ github.event_name == 'pull_request_target' &&
+ !startsWith(github.base_ref, 'renovate/')
+ uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v13.1.0
with:
issue-or-pr-number: ${{ github.event.pull_request.number }}
sync-type: initial
@@ -29,8 +31,11 @@ jobs:
manual_sync:
name: Start Manual Sync
- if: ${{ github.event_name == 'issue_comment' && contains(github.event.comment.body, '[run-sync]') }}
- uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v13.0.0
+ if: |
+ github.event_name == 'issue_comment' &&
+ contains(github.event.comment.body, '[run-sync]') &&
+ !startsWith(github.base_ref, 'renovate/')
+ uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v13.1.0
with:
issue-or-pr-number: ${{ github.event.issue.number }}
sync-type: manual
diff --git a/.github/workflows/sync-status-check.yml b/.github/workflows/sync-status-check.yml
index 2e7bad5..50b293b 100644
--- a/.github/workflows/sync-status-check.yml
+++ b/.github/workflows/sync-status-check.yml
@@ -14,7 +14,6 @@ on:
jobs:
sync_status_check:
name: Sync Status Check
- if: startsWith(github.head_ref, 'feature/')
runs-on: ubuntu-latest
steps:
- name: Set Up Deno
@@ -22,7 +21,12 @@ jobs:
with:
deno-version: ${{ vars.DENO_VERSION }}
+ - name: Pass Workflow If Renovate
+ if: startsWith(github.head_ref, 'renovate/')
+ run: Write-Host "::notice::Renovate PR detected. Skipping sync status check.";
+
- name: Run Sync Status Check
+ if: startsWith(github.head_ref, 'feature/')
run: |
$scriptUrl = "${{ vars.SCRIPT_BASE_URL }}/${{ vars.CICD_SCRIPTS_VERSION }}/${{ vars.SCRIPT_RELATIVE_DIR_PATH}}/sync-bot-status-check.ts";
$prNumber = "${{ github.event.number }}";
diff --git a/.github/workflows/unit-test-status-check.yml b/.github/workflows/unit-test-status-check.yml
index f83df9e..53898ba 100644
--- a/.github/workflows/unit-test-status-check.yml
+++ b/.github/workflows/unit-test-status-check.yml
@@ -3,7 +3,6 @@ run-name: ✅Unit Testing Status Check (${{ github.base_ref }} branch)
on:
- workflow_dispatch:
pull_request_target:
branches: [main, preview]
@@ -11,8 +10,10 @@ on:
jobs:
run_tests:
name: ${{ vars.PROJECT_NAME }} Test Status Check
- uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v13.0.0
+ uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v13.1.0
with:
project-name: "${{ vars.PROJECT_NAME }}Tests"
build-config: Debug
net-sdk-version: "${{ vars.NET_SDK_VERSION }}"
+ checkout-ref: ${{ github.event.pull_request.head.ref }}
+ checkout-repository: ${{ github.event.pull_request.head.repo.full_name }}
diff --git a/Testing/PlazmaTests/PlazmaTests.csproj b/Testing/PlazmaTests/PlazmaTests.csproj
index 5ad6017..0bf3247 100644
--- a/Testing/PlazmaTests/PlazmaTests.csproj
+++ b/Testing/PlazmaTests/PlazmaTests.csproj
@@ -38,7 +38,7 @@
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive