Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test-workflow-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
uses: microsoft/template-validation-action@Latest
with:
workingDirectory: ${{ runner.temp }}/template
validationEnvs: |
AAA=BBB,CCC=DDD
env:
REPOSITORY_NAME: Azure-Samples/azd-ai-starter

Expand Down
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ inputs:
default: 'Playwright'
options:
- 'Playwright'
validationEnvs:
description: 'Additional environment variables for validation, in KEY=VALUE format, separated by commas'
required: false
default: ''
outputs:
resultFile:
description: "A file path to a results file."
Expand Down Expand Up @@ -259,6 +263,16 @@ runs:
shell: bash
continue-on-error: true

- name: Set additional validation environment variables
id: set_additional_envs
if: ${{ inputs.validateAzd == 'true' && inputs.validationEnvs != '' }}
run: |
IFS=',' read -ra ADDR <<< "${{ inputs.validationEnvs }}"
for env_pair in "${ADDR[@]}"; do
echo "$env_pair" >> $GITHUB_ENV
done
shell: bash

- name: Check and Set targetScope in main.bicep
id: check_targetScope
if: ${{ inputs.validateAzd == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.4.3
v0.4.4
Loading