Skip to content

Commit d3d715b

Browse files
committed
updates
1 parent 1cd5271 commit d3d715b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/main.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,37 @@ on:
1818
required: true
1919
default: 'main'
2020
type: string
21+
workflow_ref:
22+
description: 'Branch containing workflow definitions'
23+
required: true
24+
default: 'main'
25+
type: string
2126

2227
jobs:
2328
call-workflow-1-in-local-repo:
2429
name: API Build
25-
uses: nitin27may/clean-architecture-docker-dotnet-angular/.github/workflows/api-build.yml@main
30+
uses: nitin27may/clean-architecture-docker-dotnet-angular/.github/workflows/api-build.yml@${{ github.event.inputs.workflow_ref }}
2631
with:
2732
ref: ${{ github.event.inputs.api_branch }}
2833
secrets: inherit
2934

3035
call-workflow-2-in-local-repo:
3136
name: Frontend Build
32-
uses: nitin27may/clean-architecture-docker-dotnet-angular/.github/workflows/angular-build.yml@main
37+
uses: nitin27may/clean-architecture-docker-dotnet-angular/.github/workflows/angular-build.yml@${{ github.event.inputs.workflow_ref }}
3338
with:
3439
ref: ${{ github.event.inputs.frontend_branch }}
3540
secrets: inherit
3641

3742
call-workflow-3-in-local-repo:
3843
name: Loadbalancer Build
39-
uses: nitin27may/clean-architecture-docker-dotnet-angular/.github/workflows/loadbalancer.build.yml@main
44+
uses: nitin27may/clean-architecture-docker-dotnet-angular/.github/workflows/loadbalancer.build.yml@${{ github.event.inputs.workflow_ref }}
4045
with:
4146
ref: ${{ github.event.inputs.loadbalancer_branch }}
4247
secrets: inherit
4348

4449
# call-workflow-4-in-local-repo:
4550
# name: AKS Deployment
46-
# uses: nitin27may/clean-architecture-docker-dotnet-angular/.github/workflows/deployment.yml@main
51+
# uses: nitin27may/clean-architecture-docker-dotnet-angular/.github/workflows/deployment.yml@${{ github.event.inputs.workflow_ref }}
4752
# if: ${{ always() }}
4853
# needs: [call-workflow-1-in-local-repo, call-workflow-2-in-local-repo, call-workflow-3-in-local-repo]
4954
# secrets: inherit

0 commit comments

Comments
 (0)