-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying AL-Go from main (37e4e3fac9276ad13dc998d03f7bf0fdad577d19) …
…to main
- Loading branch information
microsoft
committed
Sep 27, 2023
1 parent
40bd4dc
commit 111ef9c
Showing
21 changed files
with
357 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,57 +41,38 @@ jobs: | |
|
||
- name: Initialize the workflow | ||
id: init | ||
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.2 | ||
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v3.3 | ||
with: | ||
shell: powershell | ||
eventId: "DO0090" | ||
|
||
- name: Read settings | ||
uses: microsoft/AL-Go-Actions/[email protected] | ||
if: github.event.inputs.useGhTokenWorkflow == 'true' | ||
uses: microsoft/AL-Go-Actions/[email protected] | ||
with: | ||
shell: powershell | ||
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} | ||
|
||
- name: Read secrets | ||
uses: microsoft/AL-Go-Actions/ReadSecrets@v3.2 | ||
if: github.event.inputs.useGhTokenWorkflow == 'true' | ||
id: ReadSecrets | ||
uses: microsoft/AL-Go-Actions/[email protected] | ||
with: | ||
shell: powershell | ||
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} | ||
gitHubSecrets: ${{ toJson(secrets) }} | ||
getSecrets: 'ghTokenWorkflow' | ||
|
||
- name: CalculateToken | ||
id: CalculateToken | ||
env: | ||
useGhTokenWorkflow: ${{ github.event.inputs.useGhTokenWorkflow }} | ||
run: | | ||
$ghToken = '${{ secrets.GITHUB_TOKEN }}' | ||
if ($env:useGhTokenWorkflow -eq 'true') { | ||
$secrets = $env:Secrets | ConvertFrom-Json | ||
if ($secrets.GHTOKENWORKFLOW) { | ||
$ghToken = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($secrets.GHTOKENWORKFLOW)) | ||
} | ||
else { | ||
Write-Host "::Warning::GHTOKENWORKFLOW secret not found. Using GITHUB_TOKEN." | ||
} | ||
} | ||
Add-Content -Encoding UTF8 -Path $env:GITHUB_OUTPUT -Value "ghToken=$ghToken" | ||
getSecrets: 'TokenForPush' | ||
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' | ||
|
||
- name: Add existing app | ||
uses: microsoft/AL-Go-Actions/AddExistingApp@v3.2 | ||
uses: microsoft/AL-Go-Actions/AddExistingApp@v3.3 | ||
with: | ||
shell: powershell | ||
token: ${{ steps.CalculateToken.outputs.ghToken }} | ||
token: ${{ steps.ReadSecrets.outputs.TokenForPush }} | ||
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} | ||
project: ${{ github.event.inputs.project }} | ||
url: ${{ github.event.inputs.url }} | ||
directCommit: ${{ github.event.inputs.directCommit }} | ||
|
||
- name: Finalize the workflow | ||
if: always() | ||
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.2 | ||
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v3.3 | ||
with: | ||
shell: powershell | ||
eventId: "DO0090" | ||
|
Oops, something went wrong.