In some cases the release notes are found with the version control system, therefore, I think it is convenient to allow to parameterize the release notes from this source, since for now they must be in the artifact directory.
- name: appcenter_release_notes_source
type: string
default: 'artifact'
values:
- artifact
- source_control
- name: release_notes_fullpath
${{ if eq(parameters.appcenter_release_notes_source, 'artifact') }}:
value: '$(Pipeline.Workspace)/${{ parameters.artifact_name }}/${{ parameters.artifact_folder }}/${{ parameters.appcenter_release_notes_file }}'
${{ if eq(parameters.appcenter_release_notes_source, 'source_control') }}:
value: '$(Build.SourcesDirectory)/${{ parameters.appcenter_release_notes_file }}'