Skip to content

Commit 3c79cdf

Browse files
fix: update post-deployment script to use environment variable for subscription ID and enhance test automation workflow with URL opening step
1 parent aa996b6 commit 3c79cdf

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,7 @@ jobs:
152152
id: post_deploy
153153
run: |
154154
set -e
155-
156-
echo "Opening webapp URL in browser..."
157-
xdg-open "${{ env.WEBAPP_URL }}" || echo "xdg-open command not found."
158-
159-
az account set --subscription "$SUBSCRIPTION_ID"
155+
az account set --subscription "${{env.AZURE_SUBSCRIPTION_ID}}"
160156
161157
echo "Running post-deployment script..."
162158
bash ./infra/scripts/process_sample_data.sh \

.github/workflows/gp-test-automation.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ jobs:
3232
- name: Ensure browsers are installed
3333
run: python -m playwright install --with-deps chromium
3434

35+
- name: Open URL
36+
run: |
37+
echo "Opening URL: ${{ env.url }}"
38+
python -m webbrowser "${{ env.url }}"
39+
40+
- name: Sleep for 30 seconds
41+
run: sleep 30s
42+
shell: bash
43+
3544
- name: Run tests(1)
3645
id: test1
3746
run: |

0 commit comments

Comments
 (0)