From c565875113afd63134df9bf9eff76afb764ee361 Mon Sep 17 00:00:00 2001 From: freddydk Date: Fri, 22 Nov 2024 07:40:50 +0100 Subject: [PATCH] remove buildPP from appsource template --- Actions/RunPipeline/README.md | 3 ++- .../AppSource App/.github/workflows/CICD.yaml | 24 ++++--------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/Actions/RunPipeline/README.md b/Actions/RunPipeline/README.md index ceeb21626..439213912 100644 --- a/Actions/RunPipeline/README.md +++ b/Actions/RunPipeline/README.md @@ -22,7 +22,8 @@ Run pipeline in AL-Go repository | buildMode | | Specifies a mode to use for the build steps | Default | | installAppsJson | | A JSON-formatted list of apps to install | \[\] | | installTestAppsJson | | A JSON-formatted list of test apps to install | \[\] | - +| baselineWorkflowRunId | RunId of the baseline workflow run | | +| baselineWorkflowSHA | SHA of the baseline workflow run | | ## OUTPUT ## ENV variables diff --git a/Templates/AppSource App/.github/workflows/CICD.yaml b/Templates/AppSource App/.github/workflows/CICD.yaml index 68566e539..02a5731fd 100644 --- a/Templates/AppSource App/.github/workflows/CICD.yaml +++ b/Templates/AppSource App/.github/workflows/CICD.yaml @@ -176,20 +176,6 @@ jobs: signArtifacts: true useArtifactCache: true - BuildPP: - needs: [ Initialization ] - if: (!failure()) && (!cancelled()) && needs.Initialization.outputs.powerPlatformSolutionFolder != '' - name: Build PowerPlatform Solution - uses: ./.github/workflows/_BuildPowerPlatformSolution.yaml - secrets: inherit - with: - shell: ${{ needs.Initialization.outputs.githubRunnerShell }} - runsOn: ${{ needs.Initialization.outputs.githubRunner }} - parentTelemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }} - project: ${{ needs.Initialization.outputs.powerPlatformSolutionFolder }} - projectName: ${{ needs.Initialization.outputs.powerPlatformSolutionFolder }} - publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }} - DeployALDoc: needs: [ Initialization, Build ] if: (!cancelled()) && needs.Build.result == 'Success' && needs.Initialization.outputs.generateALDocArtifact == 1 && github.ref_name == 'main' @@ -238,8 +224,8 @@ jobs: uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 Deploy: - needs: [ Initialization, Build, BuildPP ] - if: (!cancelled()) && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && (needs.BuildPP.result == 'success' || needs.BuildPP.result == 'skipped') && needs.Initialization.outputs.environmentCount > 0 + needs: [ Initialization, Build ] + if: (!cancelled()) && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && needs.Initialization.outputs.environmentCount > 0 strategy: ${{ fromJson(needs.Initialization.outputs.environmentsMatrixJson) }} runs-on: ${{ fromJson(matrix.os) }} name: Deploy to ${{ matrix.environment }} @@ -303,8 +289,8 @@ jobs: deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }} Deliver: - needs: [ Initialization, Build, BuildPP ] - if: (!cancelled()) && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && (needs.BuildPP.result == 'success' || needs.BuildPP.result == 'skipped') && needs.Initialization.outputs.deliveryTargetsJson != '[]' + needs: [ Initialization, Build ] + if: (!cancelled()) && (needs.Build.result == 'success' || needs.Build.result == 'skipped') && needs.Initialization.outputs.deliveryTargetsJson != '[]' strategy: matrix: deliveryTarget: ${{ fromJson(needs.Initialization.outputs.deliveryTargetsJson) }} @@ -345,7 +331,7 @@ jobs: artifacts: '.artifacts' PostProcess: - needs: [ Initialization, Build, BuildPP, Deploy, Deliver, DeployALDoc ] + needs: [ Initialization, Build, Deploy, Deliver, DeployALDoc ] if: (!cancelled()) runs-on: [ windows-latest ] steps: