Skip to content

Commit

Permalink
[GOCSERV-119] Add productId input
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Sep 4, 2024
1 parent 4747c22 commit d09104a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/update-azureapimanagement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
type: string
description: "GitHub Repository Name."
default: ${{ github.event.repository.name }}
productId:
required: false
type: string
description: "API Management Product ID."
default: ${{ vars.API_PRODUCT_ID || 'AZ-WebServices' }}
secrets:
azurePassword:
required: false
Expand Down Expand Up @@ -94,7 +99,7 @@ jobs:
azPSVersion: "latest"
inlineScript: |
# Set API Management variables
$ApiProductId = "AZ-WebServices"
$ApiProductId = "${{ inputs.productId }}"
$ApiSubscriptionRequired = $True
# Generate API ID by appending "-api" to the repository name and replacing underscores with hyphens
Expand Down

0 comments on commit d09104a

Please sign in to comment.