Last active
July 5, 2022 10:39
-
-
Save thepaulmacca/241331226cdac3e552d9184982ceea23 to your computer and use it in GitHub Desktop.
Azure Pipelines - Sync Documentation with Azure DevOps Wiki Page
This file contains hidden or 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
# requires the WIKI Updater Tasks extension https://marketplace.visualstudio.com/items?itemName=richardfennellBM.BM-VSTS-WIKIUpdater-Tasks | |
trigger: | |
branches: | |
include: | |
- main | |
paths: | |
include: | |
- docs/* | |
pool: | |
vmImage: ubuntu-latest | |
jobs: | |
- job: UpdateWikiPage | |
displayName: Update Wiki Page as Build Agent | |
steps: | |
- task: WikiFolderUpdaterTask@1 | |
inputs: | |
repo: '<wiki-repo>' | |
Filename: '<File-Name.md>' | |
targetFolder: '<page>' | |
replaceFile: True | |
sourceFolder: '$(Build.SourcesDirectory)/docs' | |
Filter: '**/*.md' | |
message: 'Update Wiki Page as Build Agent' | |
gitname: builduser | |
gitemail: '[email protected]' | |
localpath: '$(System.DefaultWorkingDirectory)/repo' | |
useAgentToken: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment