Skip to content

Commit

Permalink
Update Upload workflow to include description on GitHub Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
KuryKat authored Sep 24, 2023
1 parent cdf5a77 commit 6a55cab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions automation/modpack-uploader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,13 @@ function New-GitHubRelease {
$Headers = @{
Authorization = 'Basic {0}' -f $Base64Token;
};


$PARSED_MODPACK_VERSION = $MODPACK_VERSION -replace "\.", ""
$Body = @{
tag_name = $MODPACK_VERSION
target_commitish = 'master'
name = $MODPACK_VERSION
body = ''
body = "### [**Human-Readable Changelog**](https://github.com/$GITHUB_NAME/$GITHUB_REPOSITORY/blob/master/changelogs/CHANGELOG.md#$MODPACK_NAME-$PARSED_MODPACK_VERSION)\n\n**Full Changelog**: https://github.com/$GITHUB_NAME/$GITHUB_REPOSITORY/compare/$LAST_MODPACK_VERSION...$MODPACK_VERSION"
draft = $false
prerelease = $false
} | ConvertTo-Json
Expand Down Expand Up @@ -455,4 +456,4 @@ switch ($mode) {
Update-Modlist
break
}
}
}

0 comments on commit 6a55cab

Please sign in to comment.