-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): Add step to fetch from remote (#1589)
Reverts #1588
- Loading branch information
1 parent
06635f6
commit cb031e2
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,20 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Output latest tag | ||
id: latest-tag | ||
run: | | ||
$tag = git describe --tags $(git rev-list --tags --max-count=1) | ||
Write-Host "Latest tag - before: $tag" | ||
git fetch origin | ||
git fetch --tags | ||
$latestTag = git describe --tags $(git rev-list --tags --max-count=1) | ||
Write-Host "Latest tag - after: $latestTag" | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
|
@@ -34,6 +48,7 @@ jobs: | |
- name: Compile installer | ||
run: | | ||
$LATEST_VERSION = git describe --tags $(git rev-list --tags --max-count=1) | ForEach-Object { $_ -replace 'v', '' } | ||
Write-Host "(Compile installer) Latest version $LATEST_VERSION" | ||
msbuild .\build\package\msi\NewRelicCLIInstaller.sln -p:Version=$LATEST_VERSION | ||
- name: Create PFX certificate | ||
|