This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 341b6313962 HDDS-14696. update-ozone-site-config-doc fails to cd
ozone-site repo (#9835)
341b6313962 is described below
commit 341b6313962e6a967a89430cd403c2fe66ec1be7
Author: Sarveksha Yeshavantha Raju
<[email protected]>
AuthorDate: Thu Feb 26 19:29:40 2026 +0530
HDDS-14696. update-ozone-site-config-doc fails to cd ozone-site repo (#9835)
---
.github/workflows/update-ozone-site-config-doc.yml | 26 +++++++++-------------
1 file changed, 11 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/update-ozone-site-config-doc.yml
b/.github/workflows/update-ozone-site-config-doc.yml
index 524fe135b99..73c839c14d7 100644
--- a/.github/workflows/update-ozone-site-config-doc.yml
+++ b/.github/workflows/update-ozone-site-config-doc.yml
@@ -51,13 +51,13 @@ jobs:
- name: Checkout ozone-site repository
if: steps.check-site-repo.outputs.exists == 'true'
- uses: actions/checkout@v4
- with:
- repository: ${{ github.repository_owner }}/ozone-site
- ref: 'master'
- path: ozone-site
- token: ${{ secrets.OZONE_WEBSITE_BUILD }}
-
+ run: |
+ git config --global url."https://asf-ci-deploy:${{
secrets.OZONE_WEBSITE_BUILD }}@github.com/".insteadOf "https://github.com/"
+ git config --global user.name 'github-actions[bot]'
+ git config --global user.email
'github-actions[bot]@users.noreply.github.com'
+
+ git clone --depth=1 --branch=master https://github.com/${{
github.repository_owner }}/ozone-site.git ozone-site
+
- name: Check if documentation changed
if: steps.check-site-repo.outputs.exists == 'true'
id: check-changes
@@ -94,11 +94,13 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
+ path: ozone-repo
- name: Extract JIRA ID from commit message
if: steps.check-changes.outputs.changed == 'true'
id: extract-jira
run: |
+ cd ozone-repo
COMMIT_MSG=$(git log -1 --format='%s' ${{
github.event.workflow_run.head_sha }})
echo "Commit message: $COMMIT_MSG"
@@ -117,9 +119,6 @@ jobs:
run: |
cd ozone-site
- git config user.name 'github-actions[bot]'
- git config user.email 'github-actions[bot]@users.noreply.github.com'
-
# Use single branch name
BRANCH_NAME="automated-config-doc-update"
@@ -157,16 +156,13 @@ jobs:
JIRA_ID="${{ steps.extract-jira.outputs.jira_id }}"
# Generate PR body
- cd ..
- dev-support/ci/pr_body_config_doc.sh \
+ ../ozone-repo/dev-support/ci/pr_body_config_doc.sh \
"$REPO" \
"${{ github.workflow }}" \
"${{ github.run_id }}" \
"${{ github.event.workflow_run.head_branch }}" \
"${{ github.event.workflow_run.head_sha }}" \
- "$JIRA_ID" > ozone-site/pr_body.txt
-
- cd ozone-site
+ "$JIRA_ID" > pr_body.txt
# Check if PR already exists
EXISTING_PR=$(gh pr list --repo "${{ github.repository_owner
}}/ozone-site" \
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]