Skip to content

Commit 60ca0c2

Browse files
committed
sd
1 parent 18067a6 commit 60ca0c2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@ jobs:
3333
run: |
3434
$json = gh issue list --search "in:body *${{ env.REPORT_ID }}*" --repo ${{ github.repository }} --app github-actions --state open --json id,number,body | ConvertFrom-Json
3535
if($json.body -eq $null) {
36-
echo "Existing issue #$($json.number) found. Exiting..."
36+
echo "Could not find existing issue. Continuing...";
3737
return;
3838
}
3939
$start = $json.body.IndexOf("<!--");
4040
$end = $json.body.IndexOf("-->") + 3;
4141
$header = $json.body.Substring($start, $end - $start)
4242
$hash = $header.Split("hash:")[1].Split("`n")[0].Trim();
43-
echo "ISSUE_NUMBER=$($json.number)" >> "$GITHUB_OUTPUT"
44-
echo "ISSUE_HASH=$hash" >> "$GITHUB_OUTPUT"
43+
echo "ISSUE_NUMBER=$($json.number)" >> "$GITHUB_OUTPUT";
44+
echo "ISSUE_HASH=$hash" >> "$GITHUB_OUTPUT";
45+
echo "Existing issue `n - number:$($json.number)`n - hash:$hash";
4546
shell: pwsh
4647
env:
4748
GH_TOKEN: ${{ github.token }}
@@ -65,6 +66,7 @@ jobs:
6566
-->
6667

6768
$($json.markdown)" | Out-File report.md
69+
echo "Changes detected and saved to report.md. Continuing..."
6870
shell: pwsh
6971
working-directory: ${{ env.WORKING_DIR }}
7072
env:
@@ -85,7 +87,6 @@ jobs:
8587
GH_TOKEN: ${{ github.token }}
8688
ISSUE: ${{ github.event.issue.html_url }}
8789
ISSUE_NUMBER: ${{ steps.check-existing-issue.outputs.ISSUE_NUMBER }}
88-
ISSUE_HASH: ${{ steps.check-existing-issue.outputs.ISSUE_HASH }}
8990

9091
# https://cli.github.com/manual/gh_issue_create
9192
# - run: |

0 commit comments

Comments
 (0)