From 5032e0e557502ef2a87dbd4389dae4387bbc0ba1 Mon Sep 17 00:00:00 2001 From: ashensw Date: Wed, 8 Nov 2023 19:05:36 +0530 Subject: [PATCH] Improve asgardeo docs release workflow --- .github/workflows/release-asgardeo-docs.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-asgardeo-docs.yml b/.github/workflows/release-asgardeo-docs.yml index 3d5a60c8e0..54ac53f09e 100644 --- a/.github/workflows/release-asgardeo-docs.yml +++ b/.github/workflows/release-asgardeo-docs.yml @@ -16,6 +16,7 @@ env: # Global environment variables jobs: release-asgardeo-docs: + if: ${{ github.actor != '${{ env.GIT_USERNAME }}' }} runs-on: ubuntu-latest steps: - name: Check out code @@ -39,7 +40,7 @@ jobs: - name: Increment version run: | - set -eo pipefail + set -euxo pipefail IFS='.' read -r MAJOR MINOR PATCH <<< "${{ env.CURRENT_VERSION }}" echo "Current version: MAJOR=$MAJOR, MINOR=$MINOR, PATCH=$PATCH" PATCH=$((PATCH+1)) @@ -97,6 +98,9 @@ jobs: 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