Skip to content

Commit

Permalink
Propagate changes to App Source App template (try 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mazhelez committed Jan 19, 2024
1 parent eb15568 commit 9c72083
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Templates/AppSource App/.github/workflows/CreateRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ on:
description: Create Release Branch?
type: boolean
default: false
releaseBranchPrefix:
description: The prefix for the release branch. Used only if 'Create Release Branch?' is checked.
type: string
default: release/
updateVersionNumber:
description: New Version Number in main branch. Use Major.Minor for absolute change, use +Major.Minor for incremental change.
required: false
Expand Down Expand Up @@ -64,7 +68,7 @@ jobs:
artifacts: ${{ steps.analyzeartifacts.outputs.artifacts }}
releaseId: ${{ steps.createrelease.outputs.releaseId }}
commitish: ${{ steps.analyzeartifacts.outputs.commitish }}
releaseBranch: ${{ steps.createreleasenotes.outputs.releaseBranch }}
releaseVersion: ${{ steps.createreleasenotes.outputs.releaseVersion }}
steps:
- name: Dump Workflow Information
uses: microsoft/AL-Go-Actions/DumpWorkflowInfo@main
Expand Down Expand Up @@ -304,11 +308,13 @@ jobs:
- name: Create Release Branch
run: |
$errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0
git checkout -b ${{ needs.CreateRelease.outputs.releaseBranch }}
$releaseBranch = '${{ github.event.inputs.releaseBranchPrefix }}${{ needs.CreateRelease.outputs.releaseVersion }}'
Write-Host "Creating release branch $releaseBranch"
git checkout -b $releaseBranch
git config user.name ${{ github.actor}}
git config user.email ${{ github.actor}}@users.noreply.github.com
git commit --allow-empty -m "Release branch ${{ needs.CreateRelease.outputs.releaseBranch }}"
git push origin ${{ needs.CreateRelease.outputs.releaseBranch }}
git commit --allow-empty -m "Release branch $releaseBranch"
git push origin $releaseBranch
UpdateVersionNumber:
needs: [ CreateRelease, UploadArtifacts ]
Expand Down

0 comments on commit 9c72083

Please sign in to comment.