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 #54

Merged
merged 1 commit into from
Apr 5, 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
27 changes: 19 additions & 8 deletions .github/RELEASENOTES.copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@

Note that when using the preview version of AL-Go for GitHub, you need to Update your AL-Go system files, as soon as possible when told to do so.

## v3.0

### **NOTE:** When upgrading to this version
When upgrading to this version form earlier versions of AL-Go for GitHub, you will need to run the _Update AL-Go System Files_ workflow twice if you have the `useProjectDependencies` setting set to _true_.

### Publish to unknown environment
You can now run the **Publish To Environment** workflow without creating the environment in GitHub or settings up-front, just by specifying the name of a single environment in the Environment Name when running the workflow.
Subsequently, if an AuthContext secret hasn't been created for this environment, the Device Code flow authentication will be initiated from the Publish To Environment workflow and you can publish to the new environment without ever creating a secret.
Open Workflow details to get the device Code for authentication in the job summary for the initialize job.

### Create Online Dev. Environment
When running the **Create Online Dev. Environment** workflow without having the _adminCenterApiCredentials_ secret created, the workflow will intiate the deviceCode flow and allow you to authenticate to the Business Central Admin Center.
Open Workflow details to get the device Code for authentication in the job summary for the initialize job.

### Issues
- Issue [#391](https://github.com/microsoft/AL-Go/issues/391) Create release action - CreateReleaseBranch error
- Issue #391 Create release action - CreateReleaseBranch error
- Issue 434 Building local DevEnv, downloading dependencies: Authentication fails when using "gh auth status"

### Changes to Pull Request Process
Expand All @@ -24,13 +35,13 @@ Build modes can now be specified per project
## v2.4

### Issues
- Issue [#171](https://github.com/microsoft/AL-Go/issues/171) create a workspace file when creating a project
- Issue [#356](https://github.com/microsoft/AL-Go/issues/356) Publish to AppSource fails in multi project repo
- Issue [#358](https://github.com/microsoft/AL-Go/issues/358) Publish To Environment Action stopped working in v2.3
- Issue [#362](https://github.com/microsoft/AL-Go/issues/362) Support for EnableTaskScheduler
- Issue [#360](https://github.com/microsoft/AL-Go/issues/360) Creating a release and deploying from a release branch
- Issue [#371](https://github.com/microsoft/AL-Go/issues/371) 'No previous release found' for builds on release branches
- Issue [#376](https://github.com/microsoft/AL-Go/issues/376) CICD jobs that are triggered by the pull request trigger run directly to an error if title contains quotes
- Issue #171 create a workspace file when creating a project
- Issue #356 Publish to AppSource fails in multi project repo
- Issue #358 Publish To Environment Action stopped working in v2.3
- Issue #362 Support for EnableTaskScheduler
- Issue #360 Creating a release and deploying from a release branch
- Issue #371 'No previous release found' for builds on release branches
- Issue #376 CICD jobs that are triggered by the pull request trigger run directly to an error if title contains quotes

### Release Branches
**NOTE:** Release Branches are now only named after major.minor if the patch value is 0 in the release tag (which must be semver compatible)
Expand Down
50 changes: 25 additions & 25 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ jobs:

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

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.0
uses: aholstrup1/AL-Go-Actions/ReadSettings@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
getEnvironments: '*'

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

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

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.0
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.0
uses: aholstrup1/AL-Go-Actions/CheckForUpdates@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
Expand Down Expand Up @@ -199,14 +199,14 @@ jobs:
path: '.dependencies'

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.0
uses: aholstrup1/AL-Go-Actions/ReadSettings@main
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
project: ${{ matrix.project }}

- name: Read secrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v3.0
uses: aholstrup1/AL-Go-Actions/ReadSecrets@main
env:
secrets: ${{ toJson(secrets) }}
with:
Expand All @@ -217,7 +217,7 @@ jobs:

- name: Run pipeline
id: RunPipeline
uses: microsoft/AL-Go-Actions/RunPipeline@v3.0
uses: aholstrup1/AL-Go-Actions/RunPipeline@main
env:
BuildMode: ${{ matrix.buildMode }}
with:
Expand All @@ -231,7 +231,7 @@ jobs:

- name: Calculate Artifact names
id: calculateArtifactsNames
uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v3.0
uses: aholstrup1/AL-Go-Actions/CalculateArtifactNames@main
if: success() || failure()
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
Expand Down Expand Up @@ -317,15 +317,15 @@ jobs:
- name: Analyze Test Results
id: analyzeTestResults
if: success() || failure()
uses: microsoft/AL-Go-Actions/AnalyzeTests@v3.0
uses: aholstrup1/AL-Go-Actions/AnalyzeTests@main
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
Project: ${{ matrix.project }}

- name: Cleanup
if: always()
uses: microsoft/AL-Go-Actions/PipelineCleanup@v3.0
uses: aholstrup1/AL-Go-Actions/PipelineCleanup@main
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
Expand Down Expand Up @@ -362,14 +362,14 @@ jobs:
path: '.dependencies'

- name: Read settings
uses: microsoft/AL-Go-Actions/ReadSettings@v3.0
uses: aholstrup1/AL-Go-Actions/ReadSettings@main
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
project: ${{ matrix.project }}

- name: Read secrets
uses: microsoft/AL-Go-Actions/ReadSecrets@v3.0
uses: aholstrup1/AL-Go-Actions/ReadSecrets@main
env:
secrets: ${{ toJson(secrets) }}
with:
Expand All @@ -380,7 +380,7 @@ jobs:

- name: Run pipeline
id: RunPipeline
uses: microsoft/AL-Go-Actions/RunPipeline@v3.0
uses: aholstrup1/AL-Go-Actions/RunPipeline@main
env:
BuildMode: ${{ matrix.buildMode }}
with:
Expand All @@ -394,7 +394,7 @@ jobs:

- name: Calculate Artifact names
id: calculateArtifactsNames
uses: microsoft/AL-Go-Actions/CalculateArtifactNames@v3.0
uses: aholstrup1/AL-Go-Actions/CalculateArtifactNames@main
if: success() || failure()
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
Expand Down Expand Up @@ -480,15 +480,15 @@ jobs:
- name: Analyze Test Results
id: analyzeTestResults
if: success() || failure()
uses: microsoft/AL-Go-Actions/AnalyzeTests@v3.0
uses: aholstrup1/AL-Go-Actions/AnalyzeTests@main
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
Project: ${{ matrix.project }}

- name: Cleanup
if: always()
uses: microsoft/AL-Go-Actions/PipelineCleanup@v3.0
uses: aholstrup1/AL-Go-Actions/PipelineCleanup@main
with:
shell: ${{ needs.Initialization.outputs.githubRunnerShell }}
parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
Expand Down Expand Up @@ -520,12 +520,12 @@ jobs:
Add-Content -Path $env:GITHUB_OUTPUT -Value "envName=$envName"

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

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

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

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

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

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

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

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

- name: Increment Version Number
uses: microsoft/AL-Go-Actions/IncrementVersionNumber@v3.0
uses: aholstrup1/AL-Go-Actions/IncrementVersionNumber@main
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
Expand All @@ -52,7 +52,7 @@ jobs:

- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.0
uses: aholstrup1/AL-Go-Actions/WorkflowPostProcess@main
with:
shell: powershell
eventId: "DO0096"
Expand Down
Loading