Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
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
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Read more at [workflowDefaultInputs](https://aka.ms/algosettings#workflowDefault
- Issue 2016 Running Update AL-Go system files with branches wildcard `*` tries to update _origin_
- Issue 1960 Deploy Reference Documentation fails
- Discussion 1952 Set default values on workflow_dispatch input
- Discussion 1855 Add trigger 'workflow_call' to workflow 'UpdateGitHubGoSystemFiles' for reusability

### Deprecations

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
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
Loading