79588166

Date: 2025-04-23 08:36:19
Score: 1.5
Natty:
Report link

The solution, it seems, is to add uses:

trigger: none

resources:
  repositories:
    - repository: WikiGit
      type: git
      name: [Project name].wiki

jobs:
  - job:
    uses: # This will not checkout the repo to the agent, but will add the repo to the agent PAT
      repositories:
        - WikiGit
    steps:
      - script: |
          az devops wiki show --wiki "[Project name].wiki" --verbose
          az devops wiki page create --path NewPage --wiki "[Project name].wiki" --comment "added a new page" --content "# New Wiki Page Created!" --verbose
        env:
          AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)

Thanks to this Visual Sudio Developer Community answer.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mike