We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa9d82 commit 2c00aa1Copy full SHA for 2c00aa1
.github/workflows/deploy.yml
@@ -2,17 +2,14 @@ name: Azure Bicep
2
3
on:
4
workflow_dispatch:
5
- inputs:
6
- appenv:
7
- type: choice
8
- description: Choose the target environment
9
- options:
10
- - dev
11
- - test
12
- - prod
13
-
14
-env:
15
- targetEnv: dev
+ inputs:
+ appenv:
+ type: choice
+ description: Choose the target environment
+ options:
+ - dev
+ - test
+ - prod
16
17
jobs:
18
build-and-deploy:
@@ -40,4 +37,4 @@ jobs:
40
37
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
41
38
resourceGroupName: ${{ secrets.AZURE_RG }}
42
39
template: ./src/InfrastructureAsCode/main.bicep
43
- parameters: environment=${{ env.targetEnv }}
+ parameters: environment=${{ github.event.inputs.appenv }}
0 commit comments