-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start work for issue #178 * fix: add secret to workflows and send secrets to invoked workflow * ci: update all reusable workflow versions
- Loading branch information
1 parent
6717114
commit 2922283
Showing
6 changed files
with
29 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
add_new_item_to_project: | ||
name: Add New Issue | ||
needs: item_number | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
org-name: "${{ vars.ORGANIZATION_NAME }}" | ||
org-project-name: "${{ vars.ORG_PROJECT_NAME }}" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,10 @@ on: | |
description: The git repository to checkout the code from. | ||
type: string | ||
default: ${{ github.repository }} | ||
secrets: | ||
cicd-pat: | ||
description: "The GitHub Personal Access Token (PAT) used to authenticate to the GitHub API." | ||
required: true | ||
|
||
|
||
jobs: | ||
|
@@ -86,11 +90,12 @@ jobs: | |
resolve_proj_file_path: | ||
name: Resolving ${{ inputs.project-name }} Project File Path | ||
needs: print_validate_workflow | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: ${{ inputs.project-name }} | ||
base-path: ${{ inputs.base-path }} | ||
|
||
secrets: | ||
cicd-pat: ${{ secrets.cicd-pat }} | ||
|
||
build_project: | ||
name: Building ${{ inputs.project-name }} Project | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,7 +157,7 @@ jobs: | |
validate_version: | ||
name: Validate Version | ||
needs: [print_validate_workflow, validate_branch] | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
release-type: "${{ inputs.release-type }}" | ||
|
@@ -168,7 +168,7 @@ jobs: | |
validate_tag: | ||
name: Validate Tag | ||
needs: validate_version | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
release-type: "${{ inputs.release-type }}" | ||
|
@@ -207,7 +207,7 @@ jobs: | |
validate_github_release: | ||
name: GitHub Release Does Not Exist | ||
needs: validate_version | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
version: "${{ needs.validate_version.outputs.version }}" | ||
|
@@ -218,7 +218,7 @@ jobs: | |
build_project: | ||
name: Build Main Project (${{ inputs.project-name }}) | ||
needs: print_validate_workflow | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
runs-on: "${{ inputs.runs-on }}" | ||
|
@@ -229,7 +229,7 @@ jobs: | |
run_tests: | ||
name: Run Tests | ||
needs: print_validate_workflow | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}Tests" | ||
runs-on: "${{ inputs.runs-on }}" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,7 +182,7 @@ jobs: | |
validate_version: | ||
name: Validate Version | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
release-type: "${{ inputs.release-type }}" | ||
|
@@ -193,7 +193,7 @@ jobs: | |
validate_tag: | ||
name: Validate Tag | ||
needs: validate_version | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
release-type: "${{ inputs.release-type }}" | ||
|
@@ -205,7 +205,7 @@ jobs: | |
nuget_pkg_does_not_exist: | ||
name: Validate NuGet Package Does Not Exist | ||
needs: validate_version | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
version: "${{ needs.validate_version.outputs.version }}" | ||
|
@@ -214,7 +214,7 @@ jobs: | |
validate_milestone_status: | ||
name: Validate Milestone Status | ||
needs: validate_version | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
version: "${{ needs.validate_version.outputs.version }}" | ||
|
@@ -225,7 +225,7 @@ jobs: | |
validate_github_release: | ||
name: GitHub Release Does Not Exist | ||
needs: [validate_version] | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
version: "${{ needs.validate_version.outputs.version }}" | ||
|
@@ -236,7 +236,7 @@ jobs: | |
build_project: | ||
name: Build Main Project | ||
needs: print_validate_workflow | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}" | ||
runs-on: "${{ inputs.runs-on }}" | ||
|
@@ -247,7 +247,7 @@ jobs: | |
run_tests: | ||
name: Run Tests | ||
needs: print_validate_workflow | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: "${{ inputs.project-name }}Tests" | ||
runs-on: "${{ inputs.runs-on }}" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,10 @@ on: | |
description: The git repository to checkout the code from. | ||
type: string | ||
default: ${{ github.repository }} | ||
secrets: | ||
cicd-pat: | ||
description: "The GitHub Personal Access Token (PAT) used to authenticate to the GitHub API." | ||
required: true | ||
|
||
|
||
jobs: | ||
|
@@ -88,10 +92,12 @@ jobs: | |
resolve_proj_file_path: | ||
name: Resolving ${{ inputs.project-name }} Project File Path | ||
needs: print_validate_workflow | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
project-name: ${{ inputs.project-name }} | ||
base-path: ${{ inputs.base-path }} | ||
secrets: | ||
cicd-pat: ${{ secrets.cicd-pat }} | ||
|
||
|
||
run_unit_tests: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
initial_sync: | ||
name: Start Initial Sync | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
issue-or-pr-number: ${{ github.event.pull_request.number }} | ||
sync-type: initial | ||
|
@@ -30,7 +30,7 @@ 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/[email protected].0 | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected].1 | ||
with: | ||
issue-or-pr-number: ${{ github.event.issue.number }} | ||
sync-type: manual | ||
|