git diff --cached --quiet && { Write-Host "No changes - tools already up to date"; exit 0 }
if ((git diff --cached --name-only) -eq "") {
Write-Host "No changes - tools already up to date"
exit 0
}
git commit -m "chore: update RDPWrapOffsetFinder tools to $version"
git commit -m "chore: update RDPWrapOffsetFinder tools to $version"
git push origin $branch
git push origin $branch
echo "branch=$branch" >> $env:GITHUB_OUTPUT
echo "branch=$branch" >> $env:GITHUB_OUTPUT
id:push
- name:Create pull request
- name:Create pull request
if:steps.push.outputs.branch != ''
if:steps.push.outputs.branch != ''
@ -104,7 +110,10 @@ jobs:
$branch = "${{ steps.push.outputs.branch }}"
$branch = "${{ steps.push.outputs.branch }}"
gh pr create `
gh pr create `
--title "chore: update RDPWrapOffsetFinder tools to $version" `
--title "chore: update RDPWrapOffsetFinder tools to $version" `
--body "Automated update of the committed RDPWrapOffsetFinder binaries in ``tools/RDPWrapOffsetFinder/`` to upstream release $version.`` Triggered manually via the Update RDPWrapOffsetFinder tools workflow.`` Merge to include the updated binaries in the next INI release." `
--body "Automated update of the committed RDPWrapOffsetFinder binaries in ``tools/RDPWrapOffsetFinder/`` to upstream release $version.
Triggered manually via the **Update RDPWrapOffsetFinder tools** workflow.
Merge to include the updated binaries in the next INI release." `