Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Nov 7, 2024
2 parents d7e8020 + d1112f3 commit 89dd2b2
Show file tree
Hide file tree
Showing 16 changed files with 154 additions and 154 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/AddExistingAppOrTestApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ permissions:

defaults:
run:
shell: powershell
shell: pwsh

env:
ALGoOrgSettings: ${{ vars.ALGoOrgSettings }}
Expand All @@ -38,12 +38,12 @@ env:
jobs:
AddExistingAppOrTestApp:
needs: [ ]
runs-on: [ windows-latest ]
runs-on: [ ubuntu-latest ]
steps:
- name: Dump Workflow Information
uses: microsoft/AL-Go/Actions/DumpWorkflowInfo@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -52,26 +52,26 @@ jobs:
id: init
uses: microsoft/AL-Go/Actions/WorkflowInitialize@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh

- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: 'TokenForPush'
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'

- name: Add existing app
uses: microsoft/AL-Go/Actions/AddExistingApp@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
project: ${{ github.event.inputs.project }}
url: ${{ github.event.inputs.url }}
Expand All @@ -83,6 +83,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
shell: powershell
shell: pwsh
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
currentJobContext: ${{ toJson(job) }}
46 changes: 23 additions & 23 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

defaults:
run:
shell: powershell
shell: pwsh

permissions:
actions: read
Expand All @@ -27,7 +27,7 @@ env:
jobs:
Initialization:
needs: [ ]
runs-on: [ windows-latest ]
runs-on: [ ubuntu-latest ]
outputs:
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
environmentsMatrixJson: ${{ steps.DetermineDeploymentEnvironments.outputs.EnvironmentsMatrixJson }}
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Dump Workflow Information
uses: microsoft/AL-Go/Actions/DumpWorkflowInfo@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -58,13 +58,13 @@ jobs:
id: init
uses: microsoft/AL-Go/Actions/WorkflowInitialize@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh

- name: Read settings
id: ReadSettings
uses: microsoft/AL-Go/Actions/ReadSettings@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
get: type, powerPlatformSolutionFolder

- name: Determine Workflow Depth
Expand All @@ -76,7 +76,7 @@ jobs:
id: determineProjectsToBuild
uses: microsoft/AL-Go/Actions/DetermineProjectsToBuild@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
maxBuildDepth: ${{ env.workflowDepth }}

- name: Determine PowerPlatform Solution Folder
Expand All @@ -89,15 +89,15 @@ jobs:
id: DetermineDeliveryTargetSecrets
uses: microsoft/AL-Go/Actions/DetermineDeliveryTargets@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
checkContextSecrets: 'false'

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: ${{ steps.DetermineDeliveryTargetSecrets.outputs.ContextSecrets }}

Expand All @@ -107,7 +107,7 @@ jobs:
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
shell: powershell
shell: pwsh
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
checkContextSecrets: 'true'

Expand All @@ -117,27 +117,27 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
shell: powershell
shell: pwsh
getEnvironments: '*'
type: 'CD'

CheckForUpdates:
needs: [ Initialization ]
runs-on: [ windows-latest ]
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
get: templateUrl

- name: Check for updates to AL-Go system files
uses: microsoft/AL-Go/Actions/CheckForUpdates@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
templateUrl: ${{ env.templateUrl }}
downloadLatest: true

Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
DeployALDoc:
needs: [ Initialization, Build ]
if: (!cancelled()) && needs.Build.result == 'Success' && needs.Initialization.outputs.generateALDocArtifact == 1 && github.ref_name == 'main'
runs-on: [ windows-latest ]
runs-on: [ ubuntu-latest ]
name: Deploy Reference Documentation
permissions:
contents: read
Expand All @@ -189,7 +189,7 @@ jobs:
- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh

- name: Setup Pages
if: needs.Initialization.outputs.deployALDocArtifact == 1
Expand All @@ -198,7 +198,7 @@ jobs:
- name: Build Reference Documentation
uses: microsoft/AL-Go/Actions/BuildReferenceDocumentation@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
artifacts: '.artifacts'

- name: Upload pages artifact
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
shell: powershell
shell: pwsh
environmentName: ${{ matrix.environment }}
artifactsFolder: '.artifacts'
deploymentEnvironmentsJson: ${{ needs.Initialization.outputs.deploymentEnvironmentsJson }}
Expand All @@ -283,7 +283,7 @@ jobs:
matrix:
deliveryTarget: ${{ fromJson(needs.Initialization.outputs.deliveryTargetsJson) }}
fail-fast: false
runs-on: [ windows-latest ]
runs-on: [ ubuntu-latest ]
name: Deliver to ${{ matrix.deliveryTarget }}
steps:
- name: Checkout
Expand All @@ -297,13 +297,13 @@ jobs:
- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: '${{ matrix.deliveryTarget }}Context'

Expand All @@ -312,7 +312,7 @@ jobs:
env:
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
with:
shell: powershell
shell: pwsh
type: 'CD'
projects: ${{ needs.Initialization.outputs.projects }}
deliveryTarget: ${{ matrix.deliveryTarget }}
Expand All @@ -321,7 +321,7 @@ jobs:
PostProcess:
needs: [ Initialization, Build, Deploy, Deliver, DeployALDoc ]
if: (!cancelled())
runs-on: [ windows-latest ]
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -332,6 +332,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
shell: powershell
shell: pwsh
telemetryScopeJson: ${{ needs.Initialization.outputs.telemetryScopeJson }}
currentJobContext: ${{ toJson(job) }}
16 changes: 8 additions & 8 deletions .github/workflows/CreateApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ permissions:

defaults:
run:
shell: powershell
shell: pwsh

env:
ALGoOrgSettings: ${{ vars.ALGoOrgSettings }}
Expand All @@ -48,12 +48,12 @@ env:
jobs:
CreateApp:
needs: [ ]
runs-on: [ windows-latest ]
runs-on: [ ubuntu-latest ]
steps:
- name: Dump Workflow Information
uses: microsoft/AL-Go/Actions/DumpWorkflowInfo@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh

- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -62,27 +62,27 @@ jobs:
id: init
uses: microsoft/AL-Go/Actions/WorkflowInitialize@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh

- name: Read settings
uses: microsoft/AL-Go/Actions/ReadSettings@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
get: type

- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go/Actions/ReadSecrets@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: 'TokenForPush'
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'

- name: Creating a new app
uses: microsoft/AL-Go/Actions/CreateApp@a46044fa1ffca4b1ff05d2d1844fd7d5922c6984
with:
shell: powershell
shell: pwsh
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
project: ${{ github.event.inputs.project }}
type: ${{ env.type }}
Expand All @@ -98,6 +98,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
shell: powershell
shell: pwsh
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
currentJobContext: ${{ toJson(job) }}
Loading

0 comments on commit 89dd2b2

Please sign in to comment.