diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index a21af02..656f9f8 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest env: DOTNET_VERSION: 9.0 - PROJECT: StarMapLoader/StarMapLoader.csproj + PROJECT: StarMap.Index/StarMap.Index.csproj steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release-zip.yml b/.github/workflows/release-zip.yml index 67af1f5..2782b78 100644 --- a/.github/workflows/release-zip.yml +++ b/.github/workflows/release-zip.yml @@ -103,20 +103,19 @@ jobs: current="${{ steps.version.outputs.new }}" prev="${{ steps.version.outputs.prev }}" - echo "previous_tag=$prev" >> $GITHUB_OUTPUT + git fetch --tags --quiet if [ -z "$prev" ]; then - echo "changed=true" >> $GITHUB_OUTPUT - exit 0 + echo "changed=true" >> $GITHUB_OUTPUT + exit 0 fi diff=$(git diff --name-only "$prev" "$current") - echo "diff_files=$diff" >> $GITHUB_OUTPUT - if echo "$diff" | grep -qE '^StarMap.Index.API/|^StarMap.Index.API.csproj'; then - echo "changed=true" >> $GITHUB_OUTPUT + if echo "$diff" | grep -qE '^(StarMap\.Index\.API/|StarMap\.Index\.API\.csproj$)'; then + 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.Index.API/ModRepositoryClient.cs b/StarMap.Index.API/ModRepositoryClient.cs index 247ca17..0ef4388 100644 --- a/StarMap.Index.API/ModRepositoryClient.cs +++ b/StarMap.Index.API/ModRepositoryClient.cs @@ -22,7 +22,7 @@ public class ModRepositoryClient : IModRespositoryClient { private GrpcChannel _channel; private ModRepositoryService.ModRepositoryServiceClient _client; - + //Force build public ModRepositoryClient(string repositoryUrl) { _channel = GrpcChannel.ForAddress(repositoryUrl);