From 8de5041a7cab10ebb8dff0aa3ba7ad8d63c2090c Mon Sep 17 00:00:00 2001 From: Danilo Guanabara Date: Wed, 24 Sep 2025 16:28:33 -0300 Subject: [PATCH] :construction_worker: Fixing C# release --- .github/workflows/publish-packages.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 95942e6c..106ae940 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -216,6 +216,19 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 + - name: Set the release version + shell: bash + run: | + if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then + echo "RELEASE_VERSION=${{ github.event.inputs.release_version }}" >> $GITHUB_ENV + elif [[ "${{ github.event_name }}" == "push" ]]; then + VERSION=$(echo "${GITHUB_REF}" | sed -E 's|refs/heads/release/v||') + echo "RELEASE_VERSION=${VERSION}" >> $GITHUB_ENV + elif [[ "${{ github.event_name }}" == "release" ]]; then + VERSION=$(echo "${GITHUB_REF}" | sed -E 's|refs/tags/v||') + echo "RELEASE_VERSION=${VERSION}" >> $GITHUB_ENV + fi + - name: Run C# Build Script run: | cd clients/csharp