#110: udpate #9
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
trigger: | ||
- pipeline | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
jobs: | ||
- job: SyncToAzureDevOps | ||
displayName: 'Sync to Azure DevOps Repository' | ||
steps: | ||
- checkout: self | ||
submodules: true | ||
- script: | | ||
echo " - [ ] Configuring git..." | ||
echo " - [ ] Adding Azure DevOps remote repository..." | ||
git remote add azure https://dev.azure.com/dotNetAPA/CurrierHub/_git/courier_app.git | ||
echo " - [ ] Fetching from Azure DevOps..." | ||
git fetch azure | ||
echo " - [ ] Pushing to Azure DevOps main branch..." | ||
git push azure HEAD:main --force | ||
env: | ||
AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN: $(AzureDevOpsPAT) | ||
displayName: 'Execute Git Commands' |