From 20141d479ccb4c91aab8f4e53425ec8f5f38b3fc Mon Sep 17 00:00:00 2001 From: ashensw Date: Thu, 9 Nov 2023 14:27:12 +0530 Subject: [PATCH] Improve asgardeo docs release workflow --- .github/workflows/release-asgardeo-docs.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-asgardeo-docs.yml b/.github/workflows/release-asgardeo-docs.yml index 0229ccb472..473c35056b 100644 --- a/.github/workflows/release-asgardeo-docs.yml +++ b/.github/workflows/release-asgardeo-docs.yml @@ -95,13 +95,11 @@ jobs: - name: Update Downstream Repository Version run: | + set -euxo pipefail VERSION_FILE_PATH="${GIT_REPO_NAME}/cd-pipelines/docs/dev-setup-variables.yaml" VERSION_LINE_PREFIX='GITHUB_RELEASE_TAG: v' # Line prefix to identify the version line # Clone the downstream repository - echo "GIT_ORG_NAME: $GIT_ORG_NAME" - echo "GIT_REPO_NAME: $GIT_REPO_NAME" - echo "GIT_BRANCH_NAME: $GIT_BRANCH_NAME" git clone "https://$GIT_USERNAME:$GITHUB_TOKEN@github.com/$GIT_ORG_NAME/$GIT_REPO_NAME.git" cd $GIT_REPO_NAME git checkout $GIT_BRANCH_NAME @@ -120,3 +118,4 @@ jobs: git add "$VERSION_FILE_PATH" git commit -m "[Dev] Update asgardeo-docs release version to ${{ env.NEW_VERSION }}" git push origin $GIT_BRANCH_NAME + shell: bash