File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 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 :
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 }}
You can’t perform that action at this time.
0 commit comments