Skip to content

Commit

Permalink
Merged PR 123: chore: Pipeline for syncing GitHub public repo on tag
Browse files Browse the repository at this point in the history
chore: Pipeline for syncing GitHub public repo on tag
  • Loading branch information
trossibip committed Jul 18, 2024
1 parent 3f62393 commit 6868764
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .devops/sync-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Automatically sync main branch to GitHub on tag

trigger:
tags:
include:
- '*'

pool:
vmImage: 'ubuntu-22.04'

steps:
- checkout: self
fetchTags: true

- script: |
git remote add github 'https://$(GITHUB_PAT)@$(GITHUB_URL)'
git push github main
git push github $(Build.SourceBranchName)
displayName: 'Sync repository with GitHub'

0 comments on commit 6868764

Please sign in to comment.