Skip to content

Commit 026a6e8

Browse files
committed
d
1 parent fb9eafc commit 026a6e8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
$hash = $header.Split("hash:")[1].Split("`n")[0].Trim();
4444
echo ISSUE_HASH=$hash >> $env:GITHUB_OUTPUT;
4545
echo ISSUE_NUMBER=$($json.number) >> $env:GITHUB_OUTPUT;
46-
# "ISSUE_HASH=$hash" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append;
4746
echo "Existing issue detected: `n - number: $($json.number)`n - hash: $hash";
4847
shell: pwsh
4948
env:
@@ -69,7 +68,6 @@ jobs:
6968
7069
$($json.markdown)" | Out-File report.md
7170
echo "Changes detected and saved to report.md. Continuing..."
72-
echo "Changes $($env:ISSUE_HASH) ${{ steps.check-existing-issue.outputs.ISSUE_HASH }}"
7371
shell: pwsh
7472
working-directory: ${{ env.WORKING_DIR }}
7573
env:
@@ -78,11 +76,11 @@ jobs:
7876
- name: create/update issue
7977
if: ${{ steps.check-existing-issue.outputs.ISSUE_HASH != '' }}
8078
run: |
81-
$content = Get-Content report.md;
79+
echo "issue: $($env:ISSUE_NUMBER)"
8280
if($env:ISSUE_NUMBER -eq '') {
83-
gh issue create --title "Outdated packages" --body $content --repo ${{ github.repository }};
81+
gh issue create --title "Outdated packages" --body-file report.md $content --repo ${{ github.repository }};
8482
} else {
85-
gh issue edit $env:ISSUE_NUMBER --body $content --repo ${{ github.repository }};
83+
gh issue edit $env:ISSUE_NUMBER --body-file report.md --repo ${{ github.repository }};
8684
}
8785
shell: pwsh
8886
working-directory: ${{ env.WORKING_DIR }}

0 commit comments

Comments
 (0)