Skip to content

#110: udpate

#110: udpate #7

trigger:
- pipeline
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: SyncToAzureDevOps

Check failure on line 8 in .github/workflows/azure-pipelines.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/azure-pipelines.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
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'