'PATH' feature requires a reboot. The MSI installer should therefore set a ScheduleReboot
after InstallFinalize
#413
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Format crash reports as code block which have been pasted into issue body without any formatting | |
name: Format crash report in issue body | |
on: | |
issues: | |
types: [opened] | |
permissions: | |
issues: write | |
jobs: | |
format-crash-report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Format crash report | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const issueNumber = context.issue.number | |
const owner = context.repo.owner | |
const repo = context.repo.repo | |
const issueBody = (await github.rest.issues.get({ | |
owner: owner, | |
repo: repo, | |
issue_number: issueNumber, | |
})).data.body | |
// Check if issue contains code block | |
if (issueBody.includes('```')) { | |
core.info('Issue body seems to contain code block; skipping formatting') | |
return | |
} | |
// Matches the content of an unindented crash report | |
const crashReportPattern = /^#(\r\n|\r|\n)^# A fatal error has been detected by the Java Runtime Environment:$.*^END\.$/ms | |
const newIssueBody = issueBody.replace(crashReportPattern, '\n```\n$&\n```\n') | |
if (newIssueBody === issueBody) { | |
core.info('Did not find crash report in issue body') | |
} else { | |
core.notice('Found crash report in issue body, formatting it') | |
github.rest.issues.update({ | |
owner: owner, | |
repo: repo, | |
issue_number: issueNumber, | |
body: newIssueBody, | |
}) | |
} |