From dcbe17ab3e69436de353a30ca3d9a12eabb2afe0 Mon Sep 17 00:00:00 2001 From: Eric Wittmann Date: Mon, 17 Jun 2024 12:06:24 -0400 Subject: [PATCH] Fix sdk workflows --- .github/workflows/release-sdk-go.yaml | 4 +--- .github/workflows/release-sdk-python.yaml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-sdk-go.yaml b/.github/workflows/release-sdk-go.yaml index 45ad40e74f..6107937bd0 100644 --- a/.github/workflows/release-sdk-go.yaml +++ b/.github/workflows/release-sdk-go.yaml @@ -35,9 +35,7 @@ jobs: run: | git config --global user.name "apicurio-ci" git config --global user.email "apicurio.ci@gmail.com" - git clone --branch $RELEASE_VERSION --single-branch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git registry - cd registry - git remote add origin "https://apicurio-ci:${{ secrets.ACCESS_TOKEN }}@github.com/Apicurio/apicurio-registry.git" + git clone --branch $RELEASE_VERSION --single-branch https://apicurio-ci:${{ secrets.ACCESS_TOKEN }}@github.com/Apicurio/apicurio-registry.git registry # We have faced issues in the past where a github release was created from a wrong commit # This step will ensure that the release was created from the right commit diff --git a/.github/workflows/release-sdk-python.yaml b/.github/workflows/release-sdk-python.yaml index 1342bbb469..7a11441e4b 100644 --- a/.github/workflows/release-sdk-python.yaml +++ b/.github/workflows/release-sdk-python.yaml @@ -35,9 +35,7 @@ jobs: run: | git config --global user.name "apicurio-ci" git config --global user.email "apicurio.ci@gmail.com" - git clone --branch $RELEASE_VERSION --single-branch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git registry - cd registry - git remote add origin "https://apicurio-ci:${{ secrets.ACCESS_TOKEN }}@github.com/Apicurio/apicurio-registry.git" + git clone --branch $RELEASE_VERSION --single-branch https://apicurio-ci:${{ secrets.ACCESS_TOKEN }}@github.com/Apicurio/apicurio-registry.git registry # We have faced issues in the past where a github release was created from a wrong commit # This step will ensure that the release was created from the right commit