Skip to content

Instantly share code, notes, and snippets.

@BetimBeja
Created September 4, 2019 07:07
Show Gist options
  • Save BetimBeja/11557ee931b78823d89233e246a57546 to your computer and use it in GitHub Desktop.
Save BetimBeja/11557ee931b78823d89233e246a57546 to your computer and use it in GitHub Desktop.
A sample job snippet for azure pipelines to keep GitHub forks synchronized. Assumes you have created a secret GitHub_Token variable in your pipeline
steps:
- bash: |
git clone https://betimbeja:${GitHub_Token}@github.com/BetimBeja/fake-xrm-easy
cd fake-xrm-easy
git remote add upstream https://github.com/jordimontana82/fake-xrm-easy
git fetch upstream
git merge upstream/master
git push
displayName: 'Synchronize with jordimontana82/fake-xrm-easy'
env:
GitHub_Token: $(Github_Token)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment