Skip to content

Commit

Permalink
Update Sync to Azure DevOps.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
HotCakeX committed Oct 14, 2024
1 parent aa5957c commit de617f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/Sync to Azure DevOps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Sync to Azure DevOps

on:
workflow_dispatch:
push:
branches: [ "main" ]

jobs:
sync:
Expand All @@ -11,7 +13,7 @@ jobs:
- name: Checkout GitHub repo
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0 # This is necessary

- name: Set up Git configuration
run: |
Expand All @@ -33,4 +35,5 @@ jobs:
echo "https://SpyNetGirl:${AZURE_DEVOPS_PAT}@dev.azure.com" > ~/.git-credentials
# Pushing only the main branch to Azure DevOps
# The 2 repositories will be completely identical and any discrepancy is taken care of by force push
git push azure main --force

0 comments on commit de617f5

Please sign in to comment.