Skip to content

Commit

Permalink
switch source branch to repo variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shaswot77 committed May 16, 2024
1 parent d14de11 commit d980230
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ jobs:
$deploymentRegion = "${{ github.event.inputs.deploymentRegion }}"
$repoUrl = "${{ env.REPO_URL }}"
$branchName = "${{ env.BRANCH_NAME }}"
$sourceBranch = "${{ env.PLUGINS_SOURCE_BRANCH2 }}"
Write-Output "Deploying Plugin with suffix $pluginSuffix from $pluginPath to $tenantToRestrictTo tenant in $deploymentRegion region..."
Write-Output "Repo URL: $repoUrl | Branch Name: $branchName"
Write-Output "Repo URL: $repoUrl | Branch Name: $branchName | Source Branch: $sourceBranch"
$organizationUrl = "${{ secrets.ORG_URL }}"
$buildDefinitionId = "${{ secrets.COMMUNITY_RESTRICTED_DEFINTION_ID }}"
Expand Down Expand Up @@ -87,7 +88,7 @@ jobs:
definition = @{
id = $buildDefinitionId
}
sourceBranch = "refs/heads/work/ss/community-deployment" #TODO: Change this to main branch
sourceBranch = "$sourceBranch"
templateParameters = @{
forkedRepoWebUrl = "$repoUrl"
forkedRepoBranch = "$branchName"
Expand Down

0 comments on commit d980230

Please sign in to comment.