This commit is contained in:
lucadruda 2021-05-26 17:36:57 +02:00
Родитель 64462b3816
Коммит 468a5685ec
2 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -121,4 +121,17 @@ jobs:
inputs:
PathtoPublish: '$(resultIpa)'
ArtifactName: 'ios'
publishLocation: 'Container'
- job: Release file
steps:
- task: ShellScript@2
inputs:
scriptPath: '$(rootPath)/createReleaseFile.sh'
- task: PublishBuildArtifacts@1
displayName: "Publish Build Artifact"
inputs:
PathtoPublish: '$(rootPath)/CHANGELOG.md'
ArtifactName: 'changelog'
publishLocation: 'Container'

8
createReleaseFile.sh Executable file
Просмотреть файл

@ -0,0 +1,8 @@
#!/bin/bash
CURRENT_TAG=$(git tag -l --sort=-v:refname | sed -n 2p)
echo "Current Tag: $CURRENT_TAG"
CHANGES=$(git log --pretty=format:"- %s" ...$CURRENT_TAG)
echo -e "**$BUILD_BUILDNUMBER**\n\n$CHANGES" > CHANGELOG.md