Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,26 @@ on:
description: Specify a comma-separated list of branches to update. Wildcards are supported. The AL-Go settings will be read for every branch. Leave empty to update the current branch only.
required: false
default: ''
workflow_call:
inputs:
templateUrl:
description: Template Repository URL (current is {TEMPLATEURL})
type: string
required: false
default: ''
downloadLatest:
description: Download latest from template repository
type: boolean
default: true
directCommit:
description: Direct Commit?
type: boolean
default: false
includeBranches:
description: Specify a comma-separated list of branches to update. Wildcards are supported. The AL-Go settings will be read for every branch. Leave empty to update the current branch only.
type: string
required: false
default: ''

permissions:
actions: read
Expand Down Expand Up @@ -117,8 +137,8 @@ jobs:
downloadLatest: '${{ github.event.inputs.downloadLatest }}'
run: |
$errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0
if('${{ github.event_name }}' -eq 'workflow_dispatch') {
Write-Host "Using inputs from workflow_dispatch event"
if('${{ github.event_name }}' -in 'workflow_dispatch', 'workflow_call') {
Write-Host "Using inputs from ${{ github.event_name }} event"
$directCommit = $env:directCommit
$downloadLatest = $env:downloadLatest
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,26 @@ on:
description: Specify a comma-separated list of branches to update. Wildcards are supported. The AL-Go settings will be read for every branch. Leave empty to update the current branch only.
required: false
default: ''
workflow_call:
inputs:
templateUrl:
description: Template Repository URL (current is {TEMPLATEURL})
type: string
required: false
default: ''
downloadLatest:
description: Download latest from template repository
type: boolean
default: true
directCommit:
description: Direct Commit?
type: boolean
default: false
includeBranches:
description: Specify a comma-separated list of branches to update. Wildcards are supported. The AL-Go settings will be read for every branch. Leave empty to update the current branch only.
type: string
required: false
default: ''

permissions:
actions: read
Expand Down Expand Up @@ -117,8 +137,8 @@ jobs:
downloadLatest: '${{ github.event.inputs.downloadLatest }}'
run: |
$errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0
if('${{ github.event_name }}' -eq 'workflow_dispatch') {
Write-Host "Using inputs from workflow_dispatch event"
if('${{ github.event_name }}' -in 'workflow_dispatch', 'workflow_call') {
Write-Host "Using inputs from ${{ github.event_name }} event"
$directCommit = $env:directCommit
$downloadLatest = $env:downloadLatest
}
Expand Down