Skip to content

Commit 78485ff

Browse files
committed
Should tag source branch since that's what is built
1 parent 3392f3b commit 78485ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-pipelines/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ extends:
4646
- script: |
4747
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
4848
git config user.name "Azure Piplines"
49-
git fetch --depth 1 origin main
50-
git tag -a $(releaseVersionWithPrefix) -m "Release $(releaseVersionWithPrefix)" origin/main
49+
git fetch --depth 1 origin $(Build.SourceBranchName)
50+
git tag -a $(releaseVersionWithPrefix) -m "Release $(releaseVersionWithPrefix)" origin/$(Build.SourceBranchName)
5151
git push origin $(releaseVersionWithPrefix)
5252
displayName: Create git tag
5353
@@ -74,7 +74,7 @@ extends:
7474
gitHubConnection: GitHub-sarif-tools
7575
repositoryName: debonte/sarif-tools
7676
action: create
77-
target: main
77+
target: $(Build.SourceBranchName)
7878
title: $(releaseVersionWithPrefix)
7979
tag: $(releaseVersionWithPrefix)
8080
tagSource: userSpecifiedTag

0 commit comments

Comments
 (0)