Created
September 4, 2019 07:07
-
-
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
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
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