2929
3030 - name : check existing issue
3131 run : |
32- $json = gh issue list --search "in:body *${{ env.REPORT_ID }}*" --repo $GITHUB_REPOSITORY --app github-actions --state open --json id,number,body | ConvertFrom-Json
32+ $json = gh issue list --search "in:body *${{ env.REPORT_ID }}*" --repo $GITHUB_REPOSITORY --app " github-actions" --state open --json id,number,body | ConvertFrom-Json
3333 if($json.body -eq $null) {
3434 echo "ISSUE_NUMBER=$($json.number)" >> "$GITHUB_OUTPUT"
3535 exit 0
5050
5151 - name : generate report
5252 run : |
53- $json = node --experimental-transform-types ./report.ts | ConvertFrom-Json
53+ $json = node --experimental-transform-types ./botframework-sdk/ report.ts | ConvertFrom-Json
5454 if($json.integrity -eq $env:ISSUE_HASH) {
5555 echo "No changes detected. Exiting..."
5656 exit 0
@@ -61,24 +61,22 @@ jobs:
6161 hash:$($json.integrity)
6262 -->
6363
64- $($json.markdown)" | Out-File ./report.md
65- Get-Content report.md
64+ $($json.markdown)" | Out-File ./botframework-sdk/ report.md
65+ Get-Content ./botframework-sdk/ report.md
6666 shell : pwsh
67- working-directory : ./botframework-sdk
6867 env :
6968 ISSUE_HASH : ${{ steps.check-existing-issue.outputs.ISSUE_HASH }}
7069
7170 - name : create/update issue
7271 if : ${{ steps.check-existing-issue.outputs.ISSUE_HASH != '' }}
7372 run : |
74- $content = Get-Content report.md;
73+ $content = Get-Content ./botframework-sdk/ report.md;
7574 if($env:ISSUE_NUMBER -eq '') {
7675 gh issue create --title "Outdated packages" --body $content --repo $GITHUB_REPOSITORY;
7776 } else {
7877 gh issue edit $env:ISSUE_NUMBER --body $content --repo $GITHUB_REPOSITORY;
7978 }
8079 shell : pwsh
81- working-directory : ./botframework-sdk
8280 env :
8381 GH_TOKEN : ${{ github.token }}
8482 ISSUE : ${{ github.event.issue.html_url }}
0 commit comments