Skip to content

Commit

Permalink
Improve asgardeo docs release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ashensw committed Nov 8, 2023
1 parent f6a4623 commit 5032e0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release-asgardeo-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
Expand Down Expand Up @@ -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:[email protected]/$GIT_ORG_NAME/$GIT_REPO_NAME.git"
cd $GIT_REPO_NAME
git checkout $GIT_BRANCH_NAME
Expand Down

0 comments on commit 5032e0e

Please sign in to comment.