Skip to content

Commit

Permalink
Update CreateOnlineDevelopmentEnvironment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aholstrup1 authored Sep 2, 2024
1 parent dbb4f3a commit 32ab120
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/CreateOnlineDevelopmentEnvironment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ jobs:
runs-on: [ windows-latest ]
outputs:
deviceCode: ${{ steps.authenticate.outputs.deviceCode }}
githubRunner: ${{ fromjson(env.Settings).githubRunner }}
githubRunnerShell: ${{ fromjson(env.Settings).githubRunnerShell }}
githubRunner: ${{ steps.getRunner.outputs.githubRunner }}
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
steps:
- name: Dump Workflow Information
Expand All @@ -68,6 +67,7 @@ jobs:
uses: microsoft/AL-Go-Actions/ReadSettings@main
with:
shell: powershell
get: githubRunner

- name: Read secrets
id: ReadSecrets
Expand All @@ -77,6 +77,11 @@ jobs:
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: 'adminCenterApiCredentials'

- name: Write GitHubRunner to output
id: getRunner
run: |
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "githubRunner=$($env:githubRunner)"
- name: Check AdminCenterApiCredentials / Initiate Device Login (open to see code)
id: authenticate
run: |
Expand All @@ -101,9 +106,6 @@ jobs:
CreateDevelopmentEnvironment:
needs: [ Initialization ]
runs-on: ${{ fromJson(needs.Initialization.outputs.githubRunner) }}
defaults:
run:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
name: Create Development Environment
env:
deviceCode: ${{ needs.Initialization.outputs.deviceCode }}
Expand Down

0 comments on commit 32ab120

Please sign in to comment.