Skip to content

Commit

Permalink
🚧Fix proj resolve issue (#179)
Browse files Browse the repository at this point in the history
* 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
CalvinWilkinson authored Oct 24, 2023
1 parent 6717114 commit 2922283
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-new-item-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build-csharp-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/dotnet-action-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"
Expand Down Expand Up @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/dotnet-lib-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand All @@ -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 }}"
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/run-csharp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-pr-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2922283

Please sign in to comment.