Skip to content

Commit f856894

Browse files
authored
Merge pull request #4109 from ashensw/asgardeo-docs
Improve asgardeo docs release workflow
2 parents 03d8dac + 5032e0e commit f856894

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release-asgardeo-docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ env: # Global environment variables
1616

1717
jobs:
1818
release-asgardeo-docs:
19+
if: ${{ github.actor != '${{ env.GIT_USERNAME }}' }}
1920
runs-on: ubuntu-latest
2021
steps:
2122
- name: Check out code
@@ -39,7 +40,7 @@ jobs:
3940
4041
- name: Increment version
4142
run: |
42-
set -eo pipefail
43+
set -euxo pipefail
4344
IFS='.' read -r MAJOR MINOR PATCH <<< "${{ env.CURRENT_VERSION }}"
4445
echo "Current version: MAJOR=$MAJOR, MINOR=$MINOR, PATCH=$PATCH"
4546
PATCH=$((PATCH+1))
@@ -97,6 +98,9 @@ jobs:
9798
VERSION_LINE_PREFIX='GITHUB_RELEASE_TAG: v' # Line prefix to identify the version line
9899
99100
# Clone the downstream repository
101+
echo "GIT_ORG_NAME: $GIT_ORG_NAME"
102+
echo "GIT_REPO_NAME: $GIT_REPO_NAME"
103+
echo "GIT_BRANCH_NAME: $GIT_BRANCH_NAME"
100104
git clone "https://$GIT_USERNAME:$GITHUB_TOKEN@github.com/$GIT_ORG_NAME/$GIT_REPO_NAME.git"
101105
cd $GIT_REPO_NAME
102106
git checkout $GIT_BRANCH_NAME

0 commit comments

Comments
 (0)