-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,10 +48,18 @@ jobs: | |
run: | | ||
git remote add private-repo [email protected]:nsswifter/AcademicApplicationDocuments.git | ||
- name: Merge changes with private repository | ||
- name: Create a Pull Request for private repository | ||
run: | | ||
# Fetch the latest changes from the private repo | ||
git fetch private-repo | ||
git checkout main | ||
git merge private-repo/main --allow-unrelated-histories | ||
git push private-repo main | ||
# Create a new branch for the changes | ||
git checkout -b update-cv | ||
# Push changes to the private repository | ||
git push private-repo update-cv | ||
# Create the pull request using GitHub's REST API | ||
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
-d '{"title": "Update CV", "head": "update-cv", "base": "main", "body": "Automated PR to update CV.pdf"}' \ | ||
https://api.github.com/repos/nsswifter/AcademicApplicationDocuments/pulls |