Skip to content

Create a new app in [main] #2

Create a new app in [main]

Create a new app in [main] #2

Workflow file for this run

name: 'Create a new app'
run-name: "Create a new app in [${{ github.ref_name }}]"
on:
workflow_dispatch:
inputs:
project:
description: Project name if the repository is setup for multiple projects
required: false
default: '.'
name:
description: Name
required: true
publisher:
description: Publisher
required: true
idrange:
description: ID range (from..to)
required: true
sampleCode:
description: Include Sample code (Y/N)
required: false
default: 'Y'
directCommit:
description: Direct COMMIT (Y/N)
required: false
default: "N"
useGhTokenWorkflow:
description: Use GhTokenWorkflow for Pull Request/COMMIT
type: boolean
permissions:
contents: write
pull-requests: write
defaults:
run:
shell: powershell
env:
ALGoOrgSettings: ${{ vars.ALGoOrgSettings }}
ALGoRepoSettings: ${{ vars.ALGoRepoSettings }}
jobs:
CreateApp:
runs-on: [ windows-latest ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize the workflow
id: init
uses: microsoft/AL-Go-Actions/[email protected]
with:
shell: powershell
eventId: "DO0092"
- name: Read settings
uses: microsoft/AL-Go-Actions/[email protected]
with:
shell: powershell
get: type
- name: Read secrets
id: ReadSecrets
uses: microsoft/AL-Go-Actions/[email protected]
with:
shell: powershell
gitHubSecrets: ${{ toJson(secrets) }}
getSecrets: 'TokenForPush'
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'
- name: Creating a new app
uses: microsoft/AL-Go-Actions/[email protected]
with:
shell: powershell
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
project: ${{ github.event.inputs.project }}
type: ${{ env.type }}
name: ${{ github.event.inputs.name }}
publisher: ${{ github.event.inputs.publisher }}
idrange: ${{ github.event.inputs.idrange }}
sampleCode: ${{ github.event.inputs.sampleCode }}
directCommit: ${{ github.event.inputs.directCommit }}
- name: Finalize the workflow
if: always()
uses: microsoft/AL-Go-Actions/[email protected]
with:
shell: powershell
eventId: "DO0092"
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}