Skip to content

Commit 374f69d

Browse files
committed
Stop using env in copilot-setup-steps.yml
Because not supported
1 parent 2e2de7e commit 374f69d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "Copilot Setup Steps"
22

3-
# Based on https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment
3+
# See https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment
44

55
# Automatically run the setup steps when they are changed to allow for easy validation, and
66
# allow manual testing through the repository's "Actions" tab
@@ -20,10 +20,6 @@ jobs:
2020
copilot-setup-steps:
2121
runs-on: ubuntu-24.04
2222

23-
env:
24-
MSSQL_SA_PASSWORD: 'PLACEHOLDERPass$$w0rd'
25-
Test__SqlServer__DefaultConnection: 'Server=localhost;Database=master;User=SA;Password=PLACEHOLDERPass$$w0rd;Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true'
26-
2723
# Install SQL Server via a docker container.
2824
# It's better to do this rather than e.g. use a testcontainer, because then the agent can reuse the same container
2925
# and instance of SQL Server rather than have to start it up each time it needs to iterate and run a test.
@@ -32,7 +28,7 @@ jobs:
3228
image: mcr.microsoft.com/mssql/server:2025-latest
3329
env:
3430
ACCEPT_EULA: Y
35-
SA_PASSWORD: ${{ env.MSSQL_SA_PASSWORD }}
31+
SA_PASSWORD: 'PLACEHOLDERPass$$w0rd'
3632
ports:
3733
- 1433:1433
3834
options: >-
@@ -43,7 +39,5 @@ jobs:
4339
--health-timeout=5s
4440
4541
steps:
46-
# The Github Actions workflow syntax requires there to be at least one step;
47-
# we don't have anything to do (we started SQL Server above), so just print something.
48-
- name: Dummy step
49-
run: echo "Workflow complete."
42+
- name: Export connection string for the agent's session
43+
run: echo "Test__SqlServer__DefaultConnection=Server=localhost;Database=master;User=SA;Password=PLACEHOLDERPass$$w0rd;Connect Timeout=60;ConnectRetryCount=0;Trust Server Certificate=true" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)