Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated AL-Go System Files #159

Merged
merged 1 commit into from
Aug 21, 2023
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
26 changes: 13 additions & 13 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.2
uses: aholstrup1/AL-Go/Actions/WorkflowInitialize@main
with:
shell: powershell
eventId: "DO0091"

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSettings@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
Expand All @@ -67,7 +67,7 @@ jobs:

- name: Determine Projects To Build
id: determineProjectsToBuild
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v3.2
uses: aholstrup1/AL-Go/Actions/DetermineProjectsToBuild@main
with:
shell: powershell
maxBuildDepth: ${{ env.workflowDepth }}
Expand All @@ -85,7 +85,7 @@ jobs:
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "Secrets=$($deliveryTargetSecrets -join ',')"

- name: Read secrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSecrets@main
with:
shell: powershell
gitHubSecrets: ${{ toJson(secrets) }}
Expand Down Expand Up @@ -157,14 +157,14 @@ jobs:
uses: actions/checkout@v3

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSettings@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
get: templateUrl

- name: Check for updates to AL-Go system files
uses: microsoft/AL-Go-Actions/CheckForUpdates@v3.2
uses: aholstrup1/AL-Go/Actions/CheckForUpdates@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
Expand Down Expand Up @@ -241,12 +241,12 @@ jobs:
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "envName=$envName"

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSettings@main
with:
shell: powershell

- name: Read secrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSecrets@main
with:
shell: powershell
gitHubSecrets: ${{ toJson(secrets) }}
Expand Down Expand Up @@ -331,7 +331,7 @@ jobs:
Write-Host "projects=$projects"

- name: Deploy
uses: microsoft/AL-Go-Actions/Deploy@v3.2
uses: aholstrup1/AL-Go/Actions/Deploy@main
env:
AuthContext: ${{ steps.authContext.outputs.authContext }}
with:
Expand Down Expand Up @@ -360,12 +360,12 @@ jobs:
path: '.artifacts'

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSettings@main
with:
shell: powershell

- name: Read secrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSecrets@main
with:
shell: powershell
gitHubSecrets: ${{ toJson(secrets) }}
Expand All @@ -382,7 +382,7 @@ jobs:
Write-Host "deliveryContext=$deliveryContext"

- name: Deliver
uses: microsoft/AL-Go-Actions/Deliver@v3.2
uses: aholstrup1/AL-Go/Actions/Deliver@main
env:
deliveryContext: ${{ steps.deliveryContext.outputs.deliveryContext }}
with:
Expand All @@ -402,7 +402,7 @@ jobs:

- name: Finalize the workflow
id: PostProcess
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.2
uses: aholstrup1/AL-Go/Actions/WorkflowPostProcess@main
with:
shell: powershell
eventId: "DO0091"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/IncrementVersionNumber.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ jobs:

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.2
uses: aholstrup1/AL-Go/Actions/WorkflowInitialize@main
with:
shell: powershell
eventId: "DO0096"

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSettings@main
if: github.event.inputs.useGhTokenWorkflow == 'true'
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}

- name: Read secrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSecrets@main
if: github.event.inputs.useGhTokenWorkflow == 'true'
with:
shell: powershell
Expand All @@ -80,7 +80,7 @@ jobs:
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ghToken=$ghToken"

- name: Increment Version Number
uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v3.2
uses: aholstrup1/AL-Go/Actions/IncrementVersionNumber@main
with:
shell: powershell
token: ${{ steps.CalculateToken.outputs.ghToken }}
Expand All @@ -91,7 +91,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.2
uses: aholstrup1/AL-Go/Actions/WorkflowPostProcess@main
with:
shell: powershell
eventId: "DO0096"
Expand Down
31 changes: 9 additions & 22 deletions .github/workflows/PullRequestHandler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ jobs:
if: (github.event.pull_request.base.repo.full_name != github.event.pull_request.head.repo.full_name) && (github.event_name != 'pull_request')
runs-on: [ windows-latest ]
steps:
- uses: actions/checkout@v3
with:
lfs: true
ref: refs/pull/${{ github.event.number }}/merge

- uses: microsoft/AL-Go-Actions/[email protected]
- uses: aholstrup1/AL-Go/Actions/VerifyPRChanges@main

Initialization:
needs: [ PregateCheck ]
Expand All @@ -57,14 +52,14 @@ jobs:

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.2
uses: aholstrup1/AL-Go/Actions/WorkflowInitialize@main
with:
shell: powershell
eventId: "DO0104"

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSettings@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
Expand All @@ -77,7 +72,7 @@ jobs:

- name: Determine Projects To Build
id: determineProjectsToBuild
uses: microsoft/AL-Go-Actions/DetermineProjectsToBuild@v3.2
uses: aholstrup1/AL-Go/Actions/DetermineProjectsToBuild@main
with:
shell: powershell
maxBuildDepth: ${{ env.workflowDepth }}
Expand Down Expand Up @@ -124,21 +119,13 @@ jobs:
secrets: 'licenseFileUrl,insiderSasToken,keyVaultCertificateUrl,keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}

PostProcess:
StatusCheck:
runs-on: [ windows-latest ]
needs: [ Initialization, Build ]
if: (!cancelled())
if: always()
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
ref: refs/pull/${{ github.event.number }}/merge

- name: Finalize the workflow
id: PostProcess
uses: microsoft/AL-Go-Actions/[email protected]
- name: Pull Request Status Check
id: StatusCheck
uses: aholstrup1/AL-Go/Actions/PullRequestStatusCheck@main
with:
shell: powershell
eventId: "DO0104"
telemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
12 changes: 6 additions & 6 deletions .github/workflows/UpdateGitHubGoSystemFiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
templateUrl:
description: Template Repository URL (current is https://github.com/microsoft/AL-Go-PTE@preview)
description: Template Repository URL (current is https://github.com/aholstrup1/AL-Go@main)
required: false
default: ''
directCommit:
Expand Down Expand Up @@ -32,20 +32,20 @@ jobs:

- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.2
uses: aholstrup1/AL-Go/Actions/WorkflowInitialize@main
with:
shell: powershell
eventId: "DO0098"

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSettings@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
get: templateUrl

- name: Read secrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSecrets@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
Add-Content -Encoding UTF8 -Path $env:GITHUB_ENV -Value "DirectCommit=$directCommit"

- name: Update AL-Go system files
uses: microsoft/AL-Go-Actions/CheckForUpdates@v3.2
uses: aholstrup1/AL-Go/Actions/CheckForUpdates@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
Expand All @@ -89,7 +89,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.2
uses: aholstrup1/AL-Go/Actions/WorkflowPostProcess@main
with:
shell: powershell
eventId: "DO0098"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/_BuildALGoProject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
lfs: true

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSettings@main
with:
shell: ${{ inputs.shell }}
parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }}
Expand All @@ -87,15 +87,15 @@ jobs:

- name: Read secrets
if: github.event_name != 'pull_request'
uses: microsoft/AL-Go-Actions/ReadSecrets@v3.2
uses: aholstrup1/AL-Go/Actions/ReadSecrets@main
with:
shell: ${{ inputs.shell }}
parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }}
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ inputs.secrets }},appDependencyProbingPathsSecrets'

- name: Determine ArtifactUrl
uses: microsoft/AL-Go-Actions/DetermineArtifactUrl@v3.2
uses: aholstrup1/AL-Go/Actions/DetermineArtifactUrl@main
id: determineArtifactUrl
with:
shell: ${{ inputs.shell }}
Expand All @@ -111,7 +111,7 @@ jobs:

- name: Download Project Dependencies
id: DownloadProjectDependencies
uses: microsoft/AL-Go-Actions/DownloadProjectDependencies@v3.2
uses: aholstrup1/AL-Go/Actions/DownloadProjectDependencies@main
with:
shell: ${{ inputs.shell }}
project: ${{ inputs.project }}
Expand All @@ -120,7 +120,7 @@ jobs:

- name: Run pipeline
id: RunPipeline
uses: microsoft/AL-Go-Actions/RunPipeline@v3.2
uses: aholstrup1/AL-Go/Actions/RunPipeline@main
env:
BuildMode: ${{ inputs.buildMode }}
with:
Expand All @@ -135,7 +135,7 @@ jobs:
- name: Sign
if: inputs.signArtifacts && env.doNotSignApps == 'False' && env.keyVaultCodesignCertificateName != ''
id: sign
uses: microsoft/AL-Go-Actions/Sign@v3.2
uses: aholstrup1/AL-Go/Actions/Sign@main
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
azureCredentialsJson: ${{ secrets.AZURE_CREDENTIALS }}
Expand All @@ -144,7 +144,7 @@ jobs:

- name: Calculate Artifact names
id: calculateArtifactsNames
uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v3.2
uses: aholstrup1/AL-Go/Actions/CalculateArtifactNames@main
if: success() || failure()
with:
shell: ${{ inputs.shell }}
Expand Down Expand Up @@ -230,15 +230,15 @@ jobs:
- name: Analyze Test Results
id: analyzeTestResults
if: success() || failure()
uses: microsoft/AL-Go-Actions/AnalyzeTests@v3.2
uses: aholstrup1/AL-Go/Actions/AnalyzeTests@main
with:
shell: ${{ inputs.shell }}
parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }}
project: ${{ inputs.project }}

- name: Cleanup
if: always()
uses: microsoft/AL-Go-Actions/PipelineCleanup@v3.2
uses: aholstrup1/AL-Go/Actions/PipelineCleanup@main
with:
shell: ${{ inputs.shell }}
parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }}
Expand Down
4 changes: 2 additions & 2 deletions System Application Modules/.AL-Go/cloudDevEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumen
$webClient.Encoding = [System.Text.Encoding]::UTF8
Write-Host "Downloading GitHub Helper module"
$GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.2/Github-Helper.psm1', $GitHubHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/aholstrup1/AL-Go/main/Actions/Github-Helper.psm1', $GitHubHelperPath)
Write-Host "Downloading AL-Go Helper script"
$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.2/AL-Go-Helper.ps1', $ALGoHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/aholstrup1/AL-Go/main/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)

Import-Module $GitHubHelperPath
. $ALGoHelperPath -local
Expand Down
4 changes: 2 additions & 2 deletions System Application Modules/.AL-Go/localDevEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumen
$webClient.Encoding = [System.Text.Encoding]::UTF8
Write-Host "Downloading GitHub Helper module"
$GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.2/Github-Helper.psm1', $GitHubHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/aholstrup1/AL-Go/main/Actions/Github-Helper.psm1', $GitHubHelperPath)
Write-Host "Downloading AL-Go Helper script"
$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.2/AL-Go-Helper.ps1', $ALGoHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/aholstrup1/AL-Go/main/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)

Import-Module $GitHubHelperPath
. $ALGoHelperPath -local
Expand Down
4 changes: 2 additions & 2 deletions System Application/.AL-Go/cloudDevEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ $webClient.CachePolicy = New-Object System.Net.Cache.RequestCachePolicy -argumen
$webClient.Encoding = [System.Text.Encoding]::UTF8
Write-Host "Downloading GitHub Helper module"
$GitHubHelperPath = "$([System.IO.Path]::GetTempFileName()).psm1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.2/Github-Helper.psm1', $GitHubHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/aholstrup1/AL-Go/main/Actions/Github-Helper.psm1', $GitHubHelperPath)
Write-Host "Downloading AL-Go Helper script"
$ALGoHelperPath = "$([System.IO.Path]::GetTempFileName()).ps1"
$webClient.DownloadFile('https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v3.2/AL-Go-Helper.ps1', $ALGoHelperPath)
$webClient.DownloadFile('https://raw.githubusercontent.com/aholstrup1/AL-Go/main/Actions/AL-Go-Helper.ps1', $ALGoHelperPath)

Import-Module $GitHubHelperPath
. $ALGoHelperPath -local
Expand Down
Loading
Loading