This is an automated email from the ASF dual-hosted git repository.

jialiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ambari-website.git


The following commit(s) were added to refs/heads/main by this push:
     new c45e860  AMBARI-26291:Add asf-site file to ambari-website asf-site 
branch (#15)
c45e860 is described below

commit c45e86071a994e203fc9a713602f6a1a40de4346
Author: tongxiaojun <[email protected]>
AuthorDate: Fri Jan 17 14:57:33 2025 +0800

    AMBARI-26291:Add asf-site file to ambari-website asf-site branch (#15)
    
    Co-authored-by: tongxiaojun <[email protected]>
---
 .github/workflows/website.yml | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml
index 46c9bd7..06dc028 100644
--- a/.github/workflows/website.yml
+++ b/.github/workflows/website.yml
@@ -33,4 +33,20 @@ jobs:
           publish_dir: ./build
           user_name: 'github-actions[bot]'
           user_email: 'github-actions[bot]@users.noreply.github.com'
-          commit_message: 'Automated deployment:'
\ No newline at end of file
+          commit_message: 'Automated deployment:'
+
+     - name: Update .asf.yaml
+       run: |
+         git config --global user.name "GitHub Actions"
+         git config --global user.email "[email protected]"
+         git fetch --all
+         git checkout asf-site
+         echo 'staging:'           > .asf.yaml
+         echo '  profile: ~'       >> .asf.yaml
+         echo '  whoami: asf-site' >> .asf.yaml
+         echo '  whoami: asf-site' >> .asf.yaml
+         git add .asf.yaml
+         git commit -m '.asf.yaml'
+         git push origin asf-site
+       env:
+         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to