Skip to content

Commit

Permalink
chore: another try #10
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <[email protected]>
  • Loading branch information
yshyn-iohk committed Aug 16, 2024
1 parent 1fb0154 commit 56ae760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/release-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit 56ae760

Please sign in to comment.