diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce936fd5fc..9e0712fa2b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -132,7 +132,6 @@ jobs: echo "REVISION_VERSION=${{ env.REVISION_VERSION }}" >> $GITHUB_ENV echo "OAS_CHECKSUM=${{ env.OAS_CHECKSUM }}" >> $GITHUB_ENV echo "OAS_PUBLISHED=${{ env.OAS_PUBLISHED }}" >> $GITHUB_ENV - echo "Coursier cache: ${{ steps.coursier-cache.outputs.cache-hit }}" build-and-publish-clients: needs: build diff --git a/.github/workflows/release-clients.yml b/.github/workflows/release-clients.yml index 0c50a8a431..639bf9def7 100644 --- a/.github/workflows/release-clients.yml +++ b/.github/workflows/release-clients.yml @@ -84,16 +84,10 @@ jobs: name: cloud-agent-openapi-spec-${{ inputs.check_sum }} path: ./cloud-agent/service/api/http - - name: WTF + - name: Rename OpenAPI specification working-directory: cloud-agent/service/api/http run: | - echo "Current directory: $(pwd)" - ls -la - echo "----" mv cloud-agent-openapi-spec-${{ inputs.revision }}.yaml cloud-agent-openapi-spec.yaml - echo "----" - ls -la - cat cloud-agent-openapi-spec.yaml - name: Set revision version if: ${{ !inputs.releaseTag }} @@ -113,8 +107,10 @@ jobs: run: | if [ -z "${{ github.event.inputs.releaseTag }}" ]; then echo "Using revision version for publishing: ${{ inputs.revision }}" + VERSION_TAG=cloud-agent-v${{ inputs.revision }} yarn publish:clients --new-version ${{ inputs.revision }} else echo "Using release tag for publishing: ${{ github.event.inputs.releaseTag }}" + VERSION_TAG=${{ github.event.inputs.releaseTag }} yarn publish:clients --new-version ${{ github.event.inputs.releaseTag }} fi