Skip to content

Commit e673d62

Browse files
committed
2
1 parent 7f14968 commit e673d62

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

.github/workflows/create-outdated-packages-issue.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: generate report
5252
run: |
53-
$json = node --experimental-transform-types report.ts | ConvertFrom-Json
53+
$json = node --experimental-transform-types ./report.ts | ConvertFrom-Json
5454
if($json.integrity -eq $env:ISSUE_HASH) {
5555
echo "No changes detected. Exiting..."
5656
exit 0
@@ -61,14 +61,14 @@ jobs:
6161
hash:$($json.integrity)
6262
-->
6363
64-
$($json.markdown)" | Out-File report.md
64+
$($json.markdown)" | Out-File ./report.md
6565
Get-Content report.md
6666
shell: pwsh
67-
working-directory: botframework-sdk
67+
working-directory: ./botframework-sdk
6868
env:
6969
ISSUE_HASH: ${{ steps.check-existing-issue.outputs.ISSUE_HASH }}
7070

71-
- name: "create/update issue"
71+
- name: create/update issue
7272
if: ${{ steps.check-existing-issue.outputs.ISSUE_HASH != '' }}
7373
run: |
7474
$content = Get-Content report.md;
@@ -78,7 +78,7 @@ jobs:
7878
gh issue edit $env:ISSUE_NUMBER --body $content --repo $GITHUB_REPOSITORY;
7979
}
8080
shell: pwsh
81-
working-directory: botframework-sdk
81+
working-directory: ./botframework-sdk
8282
env:
8383
GH_TOKEN: ${{ github.token }}
8484
ISSUE: ${{ github.event.issue.html_url }}

botframework-sdk/script.ps1

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
$json = gh issue list --search "in:body *id:outdated-packages*" --repo southworks/botbuilder-js --app github-actions --state closed --json id,number,body | ConvertFrom-Json
2+
3+
if($json.body -eq $null) {
4+
Write-Output "No issues found"
5+
exit 0
6+
}
7+
8+
# $json.body
9+
10+
# $str = "
11+
12+
# asd
13+
14+
# <!--
15+
# id:outdated-packages
16+
# hash:123
17+
# -->
18+
19+
# issues remaining
20+
# "
21+
22+
# $start = $str.IndexOf("<!--");
23+
# $end = $str.IndexOf("-->") + 3;
24+
# $header = $str.Substring($start, $end - $start)
25+
# $hash = $header.Split("hash:")[1].Split("`n")[0].Trim();

0 commit comments

Comments
 (0)