Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ImaterialC committed Dec 9, 2022
2 parents 7911c0e + 0226463 commit 46a742c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/changelog-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
types: [
{ types: ["repo"], label: "Repo Changes" },
{ types: ["other"], label: "Other Changes" },
],

renderTypeSection: function (label, commits) {
let text = `\n##** Changelog **\n`;

commits.forEach((commit) => {
text += `- ${commit.subject}\n`;
});

return text;
},

renderChangelog: function (release, changes) {
return `<@&967698392870436874> New release ${release} is dropped! Check it out!\n\n` + changes;
},
};
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,16 @@ jobs:
$AssetsURL = (Invoke-RestMethod -URI "$Env:GITHUB_API_URL/repos/$Repo/releases/latest").assets_url
$GetSpecificFile = (Invoke-RestMethod -URI $AssetsURL) | Where-Object {$_.name -match $FileName}
$R = Invoke-WebRequest -URI ($GetSpecificFile.browser_download_url) -OutFile "./newrelease/$OutFile"
Expand-Archive -Path "newrelease/$OutFile" -DestinationPath "newrelease"
Remove-Item -Path "newrelease/$OutFile"
}
Get-LatestRelease -Repo "BepInEx/BepInEx" -FileName "BepInEx_x86_.+\.zip" -OutFile "BepInEx.zip"
Get-LatestRelease -Repo "bbepis/XUnity.AutoTranslator" -FileName "XUnity.AutoTranslator-BepInEx-\d.+\.zip" -OutFile "AutoTrans.zip"
- name: Getting patch files
run: |
Copy-Item "Translation" -Destination "newrelease/BepInEx"
Copy-Item "config" -Destination "newrelease/BepInEx"
Copy-Item "Translation" -Destination "newrelease/BepInEx" -Recurse
Copy-Item "config" -Destination "newrelease/BepInEx" -Recurse
- name: Generating version files
run: |
Expand All @@ -62,6 +60,7 @@ jobs:
id: changelog
uses: loopwerk/tag-changelog@v1
with:
exclude_types: repo
token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github\changelog-config.js

Expand Down

0 comments on commit 46a742c

Please sign in to comment.