Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalle Minkner committed Nov 8, 2024
1 parent 538567d commit a8f1a96
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ jobs:
- name: Prepare CS2-UpdateManager ${{ env.REPOSITORY_NAME }}.info
if: env.new_version == 'true'
run: |
echo "version: ${{ env.version }}" > /home/runner/work/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0/publish/${{ env.REPOSITORY_NAME }}.info
echo "repository: https://github.com/${{ github.repository }}" >> /home/runner/work/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0/publish/${{ env.REPOSITORY_NAME }}.info
echo "version: ${{ env.version }}" > /home/runner/work/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0/publish/${{ env.PLUGIN_NAME }}.info
echo "repository: https://github.com/${{ github.repository }}" >> /home/runner/work/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_NAME }}/${{ env.REPOSITORY_FOLDER }}/bin/Release/net8.0/publish/${{ env.PLUGIN_NAME }}.info
- name: Prepare Release
if: env.new_version == 'true'
Expand Down
3 changes: 3 additions & 0 deletions src/UpdateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ private void getPluginList()
var pluginRepoURL = yamlObject["repository"];
// add to plugin list
_plugins.Add(new Tuple<string, string, string>(pluginName, pluginVersion, pluginRepoURL));
Console.WriteLine(Localizer["plugin.found"].Value
.Replace("{pluginName}", pluginName)
.Replace("{pluginVersion}", pluginVersion));
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/lang/de.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"core.hotreload": "[UpdateManager] Neu geladen!",
"core.unload": "[UpdateManager] Plugin entladen!",
"config.loaded": "[UpdateManager] Konfiguration geladen!"
"config.loaded": "[UpdateManager] Konfiguration geladen!",
"plugin.found": "[UpdateManager] Plugin gefunden: {pluginName} v{pluginVersion}"
}
3 changes: 2 additions & 1 deletion src/lang/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"core.hotreload": "[UpdateManager] Hot-Reloaded Plugin!",
"core.unload": "[UpdateManager] Unloaded Plugin!",
"config.loaded": "[UpdateManager] Loaded configuration!"
"config.loaded": "[UpdateManager] Loaded configuration!",
"plugin.found": "[UpdateManager] Found plugin: {pluginName} v{pluginVersion}"
}

0 comments on commit a8f1a96

Please sign in to comment.