diff --git a/.github/workflows/release-zip.yml b/.github/workflows/release-zip.yml index a2fc121..065fd03 100644 --- a/.github/workflows/release-zip.yml +++ b/.github/workflows/release-zip.yml @@ -114,20 +114,25 @@ jobs: echo "previous_tag=$prev" >> $GITHUB_OUTPUT if [ -z "$prev" ]; then - echo "changed=true" >> $GITHUB_OUTPUT - exit 0 + echo "changed=true" >> $GITHUB_OUTPUT + exit 0 fi echo "Previous tag: $prev" echo "Current commit: $current" diff=$(git diff --name-only "$prev" "$current") - echo "diff_files=$diff" >> $GITHUB_OUTPUT + + { + echo "diff_files<> "$GITHUB_OUTPUT" if echo "$diff" | grep -qE '^StarMap.API/|^StarMap.API.csproj'; then - echo "changed=true" >> $GITHUB_OUTPUT + echo "changed=true" >> $GITHUB_OUTPUT else - echo "changed=false" >> $GITHUB_OUTPUT + echo "changed=false" >> $GITHUB_OUTPUT fi - name: Pack and push StarMap.API (if changed) diff --git a/StarMap.API/README.md b/StarMap.API/README.md index edfc959..0ee0184 100644 --- a/StarMap.API/README.md +++ b/StarMap.API/README.md @@ -8,9 +8,9 @@ Any method within this class that has any of the attributes will used, so if two ## Attributes -- StarMapMod: Main attribute to mark the mod class -- StarMapImmediateLoad: Called immediatly when the mod is loaded in KSA -- StarMapAllModsLoaded: Called once all mods are loaded, can be used when this mod has a dependency on another mod -- StarMapUnload: Called when KSA is unloaded -- StarMapBeforeGui: Called just before KSA starts drawing its Ui -- StarMapAfterGui: Called after KSA has drawn its Ui +- StarMapMod: Main attribute to mark the mod class. +- StarMapImmediateLoad: Called immediatly when the mod is loaded in KSA. +- StarMapAllModsLoaded: Called once all mods are loaded, can be used when this mod has a dependency on another mod. +- StarMapUnload: Called when KSA is unloaded. +- StarMapBeforeGui: Called just before KSA starts drawing its Ui. +- StarMapAfterGui: Called after KSA has drawn its Ui.