Skip to content

Commit

Permalink
Update latex.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nsswifter committed Dec 2, 2024
1 parent de4e138 commit e2fa3dd
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e2fa3dd

Please sign in to comment.