17
17
18
18
- name : Set up Git
19
19
run : |
20
- git config --global user.name 'naderzare '
21
- git config --global user.email 'nader.zare88@gmail .com'
20
+ git config --global user.name 'GitHub Actions Bot '
21
+ git config --global user.email 'actions@github .com'
22
22
23
23
- name : Check if README was updated
24
24
run : |
@@ -32,34 +32,34 @@ jobs:
32
32
id : random
33
33
run : echo "::set-output name=random_number::$(shuf -i 1000-9999 -n 1)"
34
34
35
- - name : Clone the second repository
35
+ - name : Clone the second repository (CLSFramework.github.io)
36
36
run : |
37
- git clone https://github.com/CLSFramework/CLSFramework.github.io.git
38
- cd CLSFramework.github.io
37
+ git clone https://github.com/CLSFramework/CLSFramework.github.io.git cls-repo
38
+ cd cls-repo
39
39
40
- # Copy updated README to target directory
40
+ # Copy updated README to the target directory
41
41
cp ../README.md docs/2-sampleserver/0-sample-python-base-code-gRPC/index.md
42
42
43
- # Create a new branch with random number appended
43
+ # Create a new branch with a random number appended
44
44
git checkout -b update-readme-grpc-${{ steps.random.outputs.random_number }}
45
45
46
- - name : Set up authentication using PAT
46
+ - name : Set up authentication using PAT for CLSFramework.github.io
47
47
run : |
48
- cd CLSFramework.github.io
48
+ cd cls-repo
49
49
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/CLSFramework/CLSFramework.github.io.git
50
50
51
- - name : Commit and Push Changes
51
+ - name : Commit and Push Changes to CLSFramework.github.io
52
52
run : |
53
- cd CLSFramework.github.io
53
+ cd cls-repo
54
54
git add docs/2-sampleserver/0-sample-python-base-code-gRPC/index.md
55
55
git commit -m "Update sample server documentation from README"
56
56
git push origin update-readme-grpc-${{ steps.random.outputs.random_number }}
57
57
58
- - name : Create Pull Request in ` CLSFramework.github.io`
58
+ - name : Create Pull Request in CLSFramework.github.io
59
59
uses : peter-evans/create-pull-request@v5
60
60
with :
61
61
token : ${{ secrets.GH_TOKEN }}
62
- repository : CLSFramework/CLSFramework.github.io # Explicitly set the target repo
62
+ repository : CLSFramework/CLSFramework.github.io # Target the correct repository
63
63
branch : update-readme-grpc-${{ steps.random.outputs.random_number }}
64
64
commit-message : " Update sample server documentation from README"
65
65
title : " Update sample server documentation"
0 commit comments