From 2f55a3558f79673b8abdaa789194fea932102376 Mon Sep 17 00:00:00 2001 From: junjiequan Date: Thu, 19 Sep 2024 15:14:25 +0200 Subject: [PATCH 1/2] fix: swagger-schema artifact is missing commit ID --- .github/workflows/release-and-publish-sdk.yml | 4 ++-- .github/workflows/upload-sdk-artifact.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-and-publish-sdk.yml b/.github/workflows/release-and-publish-sdk.yml index 9a79e592f..c46b76036 100644 --- a/.github/workflows/release-and-publish-sdk.yml +++ b/.github/workflows/release-and-publish-sdk.yml @@ -121,7 +121,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: swagger-schema + name: swagger-schema-${{ github.sha }} path: ./swagger-schema.json generate-upload-sdk: @@ -139,7 +139,7 @@ jobs: - uses: actions/download-artifact@v4 with: - name: swagger-schema + name: swagger-schema-${{ github.sha }} path: . - name: Generate Client diff --git a/.github/workflows/upload-sdk-artifact.yml b/.github/workflows/upload-sdk-artifact.yml index 369426a08..a33c50a09 100644 --- a/.github/workflows/upload-sdk-artifact.yml +++ b/.github/workflows/upload-sdk-artifact.yml @@ -39,7 +39,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: swagger-schema + name: swagger-schema-${{ github.sha }} path: ./swagger-schema.json generate-and-upload-sdk: @@ -56,7 +56,7 @@ jobs: - uses: actions/download-artifact@v4 with: - name: swagger-schema + name: swagger-schema-${{ github.sha }} path: . - name: Generate Client From 72ccf7f2e87be6816157b35dde37f7063fd741f4 Mon Sep 17 00:00:00 2001 From: junjiequan Date: Thu, 19 Sep 2024 15:35:24 +0200 Subject: [PATCH 2/2] added sdk badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 103b8c3fd..b1ffe56a3 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![Test](https://github.com/SciCatProject/scicat-backend-next/actions/workflows/test.yml/badge.svg)](https://github.com/SciCatProject/scicat-backend-next/actions/workflows/test.yml) [![Deploy](https://github.com/SciCatProject/scicat-backend-next/actions/workflows/deploy.yml/badge.svg)](https://github.com/SciCatProject/scicat-backend-next/actions/workflows/deploy.yml) +[![Generate and upload latest SDK artifacts](https://github.com/SciCatProject/scicat-backend-next/actions/workflows/upload-sdk-artifact.yml/badge.svg?branch=master)](https://github.com/SciCatProject/scicat-backend-next/actions/workflows/upload-sdk-artifact.yml) [![DeepScan grade](https://deepscan.io/api/teams/8394/projects/19251/branches/494247/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=8394&pid=19251&bid=494247) [![Known Vulnerabilities](https://snyk.io/test/github/SciCatProject/scicat-backend-next/master/badge.svg?targetFile=package.json)](https://snyk.io/test/github/SciCatProject/scicat-backend-next/master?targetFile=package.json)