Skip to content

Commit 7937ec2

Browse files
🚀Production (v15.0.0) - Update reusable workflow versions
1 parent a8c4e60 commit 7937ec2

34 files changed

Lines changed: 91 additions & 76 deletions

.github/internal-cicd/scripts/update-cicd-script-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RepoClient } from "@kd-clients/github";
1+
import { RepoClient } from "jsr:@kinsondigital/kd-clients@1.0.0-preview.15/github";
22
import getEnvVar from "../../../cicd/core/GetEnvVar.ts";
33
import { printAsGitHubNotice } from "../../../cicd/core/Utils.ts";
44

.github/internal-cicd/scripts/update-workflow-versions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { existsSync, walkSync } from "@std/fs";
2-
import { RepoClient } from "@kd-clients/github";
1+
import { existsSync, walkSync } from "jsr:@std/fs@1.0.19";
2+
import { RepoClient } from "jsr:@kinsondigital/kd-clients@1.0.0-preview.15/github";
33
import getEnvVar from "../../../cicd/core/GetEnvVar.ts";
44

55
const scriptFileName = new URL(import.meta.url).pathname.split("/").pop();

.github/workflows/add-new-item-to-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
add_new_item_to_project:
3737
name: Add New Issue
3838
needs: item_number
39-
uses: KinsonDigital/Infrastructure/.github/workflows/add-item-to-project.yml@v14.3.0
39+
uses: KinsonDigital/Infrastructure/.github/workflows/add-item-to-project.yml@v15.0.0
4040
with:
4141
org-name: "${{ vars.ORGANIZATION_NAME }}"
4242
org-project-name: "${{ vars.ORG_PROJECT_NAME }}"

.github/workflows/build-csharp-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
resolve_proj_file_path:
9191
name: Resolving ${{ inputs.project-name }} Project File Path
9292
needs: print_validate_workflow
93-
uses: KinsonDigital/Infrastructure/.github/workflows/resolve-csharp-proj-file.yml@v14.3.0
93+
uses: KinsonDigital/Infrastructure/.github/workflows/resolve-csharp-proj-file.yml@v15.0.0
9494
with:
9595
project-name: ${{ inputs.project-name }}
9696
base-path: ${{ inputs.base-path }}

.github/workflows/dotnet-action-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
validate_version:
158158
name: Validate Version
159159
needs: [print_validate_workflow, validate_branch]
160-
uses: KinsonDigital/Infrastructure/.github/workflows/validate-csharp-version.yml@v14.3.0
160+
uses: KinsonDigital/Infrastructure/.github/workflows/validate-csharp-version.yml@v15.0.0
161161
with:
162162
project-name: "${{ inputs.project-name }}"
163163
release-type: "${{ inputs.release-type }}"
@@ -168,7 +168,7 @@ jobs:
168168
validate_tag:
169169
name: Validate Tag
170170
needs: validate_version
171-
uses: KinsonDigital/Infrastructure/.github/workflows/validate-tag.yml@v14.3.0
171+
uses: KinsonDigital/Infrastructure/.github/workflows/validate-tag.yml@v15.0.0
172172
with:
173173
project-name: "${{ inputs.project-name }}"
174174
release-type: "${{ inputs.release-type }}"
@@ -180,7 +180,7 @@ jobs:
180180
validate_sdk_setup:
181181
name: Validate SDK Setup
182182
needs: print_validate_workflow
183-
uses: KinsonDigital/Infrastructure/.github/workflows/validate-sdk-versions.yml@v14.3.0
183+
uses: KinsonDigital/Infrastructure/.github/workflows/validate-sdk-versions.yml@v15.0.0
184184
with:
185185
repo-name: "${{ inputs.project-name }}"
186186

@@ -215,7 +215,7 @@ jobs:
215215
validate_github_release:
216216
name: GitHub Release Does Not Exist
217217
needs: validate_version
218-
uses: KinsonDigital/Infrastructure/.github/workflows/validate-github-release.yml@v14.3.0
218+
uses: KinsonDigital/Infrastructure/.github/workflows/validate-github-release.yml@v15.0.0
219219
with:
220220
project-name: "${{ inputs.project-name }}"
221221
version: "${{ needs.validate_version.outputs.version }}"
@@ -226,7 +226,7 @@ jobs:
226226
build_project:
227227
name: Build Main Project (${{ inputs.project-name }})
228228
needs: print_validate_workflow
229-
uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v14.3.0
229+
uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v15.0.0
230230
with:
231231
project-name: "${{ inputs.project-name }}"
232232
runs-on: "${{ inputs.runs-on }}"
@@ -239,7 +239,7 @@ jobs:
239239
run_tests:
240240
name: Run Tests
241241
needs: print_validate_workflow
242-
uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v14.3.0
242+
uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v15.0.0
243243
with:
244244
project-name: "${{ inputs.project-name }}Tests"
245245
runs-on: "${{ inputs.runs-on }}"

.github/workflows/dotnet-lib-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ env:
9393
jobs:
9494
validate_version:
9595
name: Validate Version
96-
uses: KinsonDigital/Infrastructure/.github/workflows/validate-csharp-version.yml@v14.3.0
96+
uses: KinsonDigital/Infrastructure/.github/workflows/validate-csharp-version.yml@v15.0.0
9797
with:
9898
project-name: "${{ inputs.project-name }}"
9999
release-type: "${{ inputs.release-type }}"
@@ -278,7 +278,7 @@ jobs:
278278
build_project:
279279
name: Build Main Project
280280
needs: [run_prerelease_validation]
281-
uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v14.3.0
281+
uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v15.0.0
282282
with:
283283
project-name: "${{ inputs.project-name }}"
284284
runs-on: "${{ inputs.runs-on }}"
@@ -291,7 +291,7 @@ jobs:
291291
run_tests:
292292
name: Run Tests
293293
needs: [run_prerelease_validation]
294-
uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v14.3.0
294+
uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v15.0.0
295295
with:
296296
project-name: "${{ inputs.project-name }}Tests"
297297
runs-on: "${{ inputs.runs-on }}"
@@ -393,7 +393,7 @@ jobs:
393393
bodyFile: "${{ github.workspace }}/ReleaseNotes/${{ inputs.release-type }}Releases/Release-Notes-${{ needs.validate_version.outputs.version }}.md"
394394
artifacts: "${{ github.workspace }}/ReleaseNotes/${{ inputs.release-type }}Releases/Release-Notes-${{ needs.validate_version.outputs.version }}.md"
395395
prerelease: ${{ inputs.release-type }} == 'Preview'
396-
token: ${{ secrets.EA_CICD_TOKEN }}
396+
token: ${{ secrets.CICD_TOKEN }}
397397

398398
- name: Close Milestone
399399
if: ${{ inputs.dry-run == false }}

.github/workflows/run-csharp-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
resolve_proj_file_path:
9393
name: Resolving ${{ inputs.project-name }} Project File Path
9494
needs: print_validate_workflow
95-
uses: KinsonDigital/Infrastructure/.github/workflows/resolve-csharp-proj-file.yml@v14.3.0
95+
uses: KinsonDigital/Infrastructure/.github/workflows/resolve-csharp-proj-file.yml@v15.0.0
9696
with:
9797
project-name: ${{ inputs.project-name }}
9898
base-path: ${{ inputs.base-path }}

.github/workflows/sync-pr-to-issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
github.event_name == 'pull_request_target' &&
2121
!startsWith(github.head_ref, 'renovate/') &&
2222
github.head_ref != 'prev-release' && github.head_ref != 'prod-release'
23-
uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v14.3.0
23+
uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v15.0.0
2424
with:
2525
issue-or-pr-number: ${{ github.event.pull_request.number }}
2626
sync-type: initial
@@ -37,7 +37,7 @@ jobs:
3737
github.head_ref != 'prev-release' && github.head_ref != 'prod-release' &&
3838
github.event.issue.pull_request && github.event.issue.pull_request.url != null &&
3939
contains(github.event.comment.body, '[run-sync]')
40-
uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v14.3.0
40+
uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v15.0.0
4141
with:
4242
issue-or-pr-number: ${{ github.event.issue.number }}
4343
sync-type: manual

cicd/core/ParamGuards.ts

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export function isNothing<T>(
1111
paramName = "",
1212
): void {
1313
let type: string | undefined = undefined;
14-
let errorMsg = `The {{TYPE}} value is null, undefined, or empty.`;
1514

1615
if (value === undefined || value === null) {
1716
type = "value";
@@ -29,19 +28,31 @@ export function isNothing<T>(
2928
return;
3029
}
3130

32-
errorMsg = errorMsg.replace("{{TYPE}}", type);
31+
let valueIsNothing = false;
3332

34-
if (funcName !== "") {
35-
errorMsg += `\nFunction Name: ${funcName}`;
33+
if (typeof value === "string") {
34+
valueIsNothing = value.trim() === "";
35+
} else if (Array.isArray(value)) {
36+
valueIsNothing = value.length === 0;
37+
} else {
38+
valueIsNothing = value === undefined || value === null;
3639
}
3740

38-
if (paramName !== "") {
39-
errorMsg += `\nParam Name: ${paramName}`;
40-
}
41+
if (valueIsNothing) {
42+
let errorMsg = `The ${type} value is null, undefined, or empty.`;
43+
44+
if (funcName !== "") {
45+
errorMsg += `\nFunction Name: ${funcName}`;
46+
}
4147

42-
printAsGitHubError(errorMsg);
48+
if (paramName !== "") {
49+
errorMsg += `\nParam Name: ${paramName}`;
50+
}
51+
52+
printAsGitHubError(errorMsg);
4353

44-
Deno.exit(1);
54+
Deno.exit(1);
55+
}
4556
}
4657

4758
/**

cicd/core/ReleaseXPostBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RepoClient } from "@kd-clients/github";
1+
import { RepoClient } from "jsr:@kinsondigital/kd-clients@1.0.0-preview.15/github";
22
import { isNothing } from "./ParamGuards.ts";
33
import { printAsGitHubError } from "./Utils.ts";
44

0 commit comments

Comments
 (0)