Skip to content

Commit

Permalink
Merge pull request #533 from freddydk/createnewapp
Browse files Browse the repository at this point in the history
Create New App and other workflows ignores selected branch
  • Loading branch information
freddydk authored May 13, 2023
2 parents 7df8140 + 6e289c2 commit fb20f04
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Actions/AL-Go-Helper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@ function CloneIntoNewFolder {
invoke-git clone $serverUrl

Set-Location *
invoke-git checkout $ENV:GITHUB_REF_NAME

if ($branch) {
invoke-git checkout -b $branch
Expand All @@ -1131,7 +1132,7 @@ function CommitFromNewFolder {
invoke-git commit --allow-empty -m "'$commitMessage'"
if ($branch) {
invoke-git push -u $serverUrl $branch
invoke-gh pr create --fill --head $branch --repo $env:GITHUB_REPOSITORY
invoke-gh pr create --fill --head $branch --repo $env:GITHUB_REPOSITORY --base $ENV:GITHUB_REF_NAME
}
else {
invoke-git push $serverUrl
Expand Down
19 changes: 19 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,37 @@
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.

### Issues

Issue #446 Wrong NewLine character in Release Notes
Issue #453 DeliverToStorage - override fails reading secrets
Issue #434 Use gh auth token to get authentication token instead of gh auth status
Issue #501 The Create New App action will now use 22.0.0.0 as default application reference and include NoImplicitwith feature.


### New behavior

The following workflows:

- Create New App
- Create New Test App
- Create New Performance Test App
- Increment Version Number
- Add Existing App
- Create Online Development Environment

All these actions now uses the selected branch in the **Run workflow** dialog as the target for the Pull Request or Direct COMMIT.

### New Settings

- `UseCompilerFolder`: Setting useCompilerFolder to true causes your pipelines to use containerless compiling. Unless you also set `doNotPublishApps` to true, setting useCompilerFolder to true won't give you any performance advantage, since AL-Go for GitHub will still need to create a container in order to publish and test the apps. In the future, publishing and testing will be split from building and there will be other options for getting an instance of Business Central for publishing and testing.
- `vsixFile`: vsixFile should be a direct download URL to the version of the AL Language extension you want to use for building the project or repo. By default, AL-Go will use the AL Language extension that comes with the Business Central Artifacts.

### New Actions

- **DetermineArtifactUrl** is used to determine which artifacts to use for building a project in CI/CD, PullRequestHandler, Current, NextMinor and NextMajor workflows.

### License File

With the changes to the CRONUS license in Business Central version 22, that license can in most cases be used as a developer license for AppSource Apps and it is no longer mandatory to specify a license file in AppSource App repositories.
Obviously, if you build and test your app for Business Central versions prior to 21, it will fail if you don't specify a licenseFileUrl secret.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'Add existing app or test app'

run-name: "Add existing app or test app in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
2 changes: 2 additions & 0 deletions Templates/AppSource App/.github/workflows/CreateApp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'Create a new app'

run-name: "Create a new app in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: ' Create Online Dev. Environment'

run-name: "Create Online Dev. Environment for [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'Create a new performance test app'

run-name: "Create a new performance test app in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
2 changes: 2 additions & 0 deletions Templates/AppSource App/.github/workflows/CreateTestApp.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'Create a new test app'

run-name: "Create a new test app in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: ' Increment Version Number'

run-name: "Increment Version Number in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'Add existing app or test app'

run-name: "Add existing app or test app in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'Create a new app'

run-name: "Create a new app in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: ' Create Online Dev. Environment'

run-name: "Create Online Dev. Environment for [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'Create a new performance test app'

run-name: "Create a new performance test app in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'Create a new test app'

run-name: "Create a new test app in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: ' Increment Version Number'

run-name: "Increment Version Number in [${{ github.ref_name }}]"

on:
workflow_dispatch:
inputs:
Expand Down

0 comments on commit fb20f04

Please sign in to comment.