Skip to content

Commit

Permalink
fix ado workflows (#193)
Browse files Browse the repository at this point in the history
* Fixed script paths

* Fixing ADO script names and issue number

---------

Co-authored-by: Chris Schraer <[email protected]>
  • Loading branch information
chschrae and Chris Schraer authored Feb 12, 2024
1 parent 6452c4a commit 577360a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ado-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
id: create_item
shell: pwsh
run: |
$itemExists = pwsh ./scripts/check-ado-item.ps1 -organization "msdata" -project "Vienna" -pat "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN}}" -title "${{ github.event.issue.title }}" -areaPath "Vienna\\Experiences\\Core SDK\\AI CLI"
$itemExists = pwsh ./scripts/ADOCheckItemExists.ps1 -organization "msdata" -project "Vienna" -pat "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN}}" -title "${{ github.event.issue.title }}" -areaPath "Vienna\\Experiences\\Core SDK\\AI CLI"
if ($itemExists -eq $true) {
echo "Work item already exists"
exit 0
}
$result = pwsh -File ./scripts/CreateWorkItem.ps1 -pat "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}" -title "${{ github.event.issue.title }}" -description "${{ github.event.issue.body }}" -organization "msdata" -project "Vienna" -workItemType "Feature" -iterationPath "Vienna\\Backlog" -areaPath "Vienna\\Experiences\\Core SDK\\AI CLI"
$result = pwsh -File ./scripts/ADOCreateFeature.ps1 -pat "${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}" -title "${{ github.event.issue.title }}" -description "${{ github.event.issue.body }}" -organization "msdata" -project "Vienna" -workItemType "Feature" -iterationPath "Vienna\\Backlog" -areaPath "Vienna\\Experiences\\Core SDK\\AI CLI"
$adoWorkItemLink = pwsh -File ./scripts/ADOGetADOLinkNumber.ps1 "${{ github.event.issue.body }}"
if ($adoWorkItemLink -eq 0){
pwsh -File ./scripts/GithubUpdateIssue.ps1 -token "${{ secrets.GH_PERSONAL_ACCESS_TOKEN}}" -owner "Azure" -repo "azure-ai-cli" -issueNumber ${{ github.event.issue.id }} -newDescription "AB#$result"
pwsh -File ./scripts/GithubUpdateIssue.ps1 -token "${{ secrets.GH_PERSONAL_ACCESS_TOKEN}}" -owner "Azure" -repo "azure-ai-cli" -issueNumber ${{ github.event.issue.number }} -newDescription "AB#$result"
}

0 comments on commit 577360a

Please sign in to comment.