File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sync Azure DevOps to GitHub
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 * * * *' # Runs every hour (you can adjust this)
6+ workflow_dispatch : # Allows you to run the action manually
7+
8+ jobs :
9+ sync :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout GitHub Repository
14+ uses : actions/checkout@v2
15+
16+ - name : Set up Git
17+ run : |
18+ git config --global user.name 'Your Name'
19+ git config --global user.email '[email protected] ' 20+
21+ - name : Add Azure DevOps as Remote
22+ run : git remote add azure https://dev.azure.com/yourorganization/yourproject/_git/yourrepository
23+
24+ - name : Pull Changes from Azure DevOps
25+ run : git pull azure main
26+
27+ - name : Push Changes to GitHub
28+ run : git push origin main
You can’t perform that action at this time.
0 commit comments