Skip to content

Commit 4344231

Browse files
authored
Fix environment variable persistence in Copilot setup workflow (#2145)
1 parent aa0987d commit 4344231

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
contents: read
2525

2626
steps:
27+
- name: Set Environment Variables
28+
shell: bash
29+
run: |
30+
echo "MODULE_NAME=SqlServerDsc" >> "$GITHUB_ENV"
31+
2732
- name: Checkout Repository
2833
uses: actions/checkout@v5
2934
with:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
- Attempt to unshallow the Copilot branch
2121
- Improved AI instructions.
2222
- Enhanced workflow with proper environment variable configuration and DSCv3 verification.
23+
- Fixed environment variable persistence by using $GITHUB_ENV instead of
24+
job-level env declaration.
2325
- `Assert-SqlDscLogin`
2426
- Added new public command to validate that a specified SQL Server principal
2527
exists as a login, throwing a terminating error if it doesn't exist.

0 commit comments

Comments
 (0)