Skip to content

Commit 9aa49e9

Browse files
authored
Update main.yml
1 parent 4e9f2ff commit 9aa49e9

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,10 @@ jobs:
5555
git commit -m "Update sample server documentation from README"
5656
git push origin update-readme-grpc-${{ steps.random.outputs.random_number }}
5757
58-
- name: Create Pull Request in CLSFramework.github.io
59-
uses: peter-evans/create-pull-request@v5
60-
with:
61-
token: ${{ secrets.GH_TOKEN }}
62-
repository: CLSFramework/CLSFramework.github.io # Explicitly set the target repo
63-
branch: update-readme-grpc-${{ steps.random.outputs.random_number }}
64-
commit-message: "Update sample server documentation from README"
65-
title: "Update sample server documentation"
66-
body: "This PR updates the sample server documentation based on changes made in README.md."
67-
base: main
58+
- name: Create Pull Request in CLSFramework.github.io using GitHub API
59+
run: |
60+
PR_RESPONSE=$(curl -X POST -H "Authorization: token ${{ secrets.GH_TOKEN }}" \
61+
-H "Accept: application/vnd.github.v3+json" \
62+
https://api.github.com/repos/CLSFramework/CLSFramework.github.io/pulls \
63+
-d '{"title":"Update sample server documentation","head":"update-readme-grpc-${{ steps.random.outputs.random_number }}","base":"main","body":"This PR updates the sample server documentation based on changes made in README.md."}')
64+
echo "Pull request created: $PR_RESPONSE"

0 commit comments

Comments
 (0)